[llvm] r268438 - [Support] Drop template line in favor of 'inline'
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 14:04:42 PDT 2016
Author: vedantk
Date: Tue May 3 16:04:42 2016
New Revision: 268438
URL: http://llvm.org/viewvc/llvm-project?rev=268438&view=rev
Log:
[Support] Drop template line in favor of 'inline'
Reviewed-by: lhames
Modified:
llvm/trunk/include/llvm/Support/Error.h
Modified: llvm/trunk/include/llvm/Support/Error.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Error.h?rev=268438&r1=268437&r2=268438&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Error.h (original)
+++ llvm/trunk/include/llvm/Support/Error.h Tue May 3 16:04:42 2016
@@ -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;
More information about the llvm-commits
mailing list