]> granicus.if.org Git - llvm/commitdiff
[Support] Drop template line in favor of 'inline'
authorVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 21:04:42 +0000 (21:04 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 3 May 2016 21:04:42 +0000 (21:04 +0000)
Reviewed-by: lhames
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268438 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Error.h

index eb9b0619a3f9f6dffe68bd318c804feb0ef70936..4e4b5518a35e2438ad3fb4df5e8462602fe7b899 100644 (file)
@@ -526,9 +526,8 @@ inline void handleAllErrors(Error E) {
 /// This is useful in the base level of your program to allow clean termination
 /// (allowing clean deallocation of resources, etc.), while reporting error
 /// information to the user.
-template <typename... HandlerTs>
-void logAllUnhandledErrors(Error E, raw_ostream &OS,
-                           const std::string &ErrorBanner) {
+inline void logAllUnhandledErrors(Error E, raw_ostream &OS,
+                                  const std::string &ErrorBanner) {
   if (!E)
     return;
   OS << ErrorBanner;