aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Error.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-11 01:46:03 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-11 01:46:03 +0000
commit45eb84f34044c2e3c83f420c9bbdcdf028eb80c4 (patch)
tree393e63edefba1bf8f317f27f522b2ec9db06efe0 /llvm/lib/Support/Error.cpp
parentef33a190bccc782a505ff0b18cadc278ec682926 (diff)
downloadllvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.zip
llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.tar.gz
llvm-45eb84f34044c2e3c83f420c9bbdcdf028eb80c4.tar.bz2
[Support] Make error banner optional in logAllUnhandledErrors
In a lot of places an empty string was passed as the ErrorBanner to logAllUnhandledErrors. This patch makes that argument optional to simplify the call sites. llvm-svn: 346604
Diffstat (limited to 'llvm/lib/Support/Error.cpp')
-rw-r--r--llvm/lib/Support/Error.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp
index ad2443d..0b0be8d 100644
--- a/llvm/lib/Support/Error.cpp
+++ b/llvm/lib/Support/Error.cpp
@@ -141,7 +141,7 @@ void report_fatal_error(Error Err, bool GenCrashDiag) {
std::string ErrMsg;
{
raw_string_ostream ErrStream(ErrMsg);
- logAllUnhandledErrors(std::move(Err), ErrStream, "");
+ logAllUnhandledErrors(std::move(Err), ErrStream);
}
report_fatal_error(ErrMsg);
}