[llvm] 163003d - [Support] Forward GenCrashDiag argument from report_fatal_error(Error, bool)
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Wed May 17 03:17:17 PDT 2023
Author: Alex Bradbury
Date: 2023-05-17T11:16:15+01:00
New Revision: 163003d3ba41187c06e8d6ada5952c753c5d73bb
URL: https://github.com/llvm/llvm-project/commit/163003d3ba41187c06e8d6ada5952c753c5d73bb
DIFF: https://github.com/llvm/llvm-project/commit/163003d3ba41187c06e8d6ada5952c753c5d73bb.diff
LOG: [Support] Forward GenCrashDiag argument from report_fatal_error(Error, bool)
The boolean GenCrashDiag argument was previous just discarded, which
seems to be an oversight that existed when this overload was first
added.
Differential Revision: https://reviews.llvm.org/D150669
Added:
Modified:
llvm/lib/Support/Error.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp
index fbe86f2b59e1..b339b708d906 100644
--- a/llvm/lib/Support/Error.cpp
+++ b/llvm/lib/Support/Error.cpp
@@ -149,7 +149,7 @@ void report_fatal_error(Error Err, bool GenCrashDiag) {
raw_string_ostream ErrStream(ErrMsg);
logAllUnhandledErrors(std::move(Err), ErrStream);
}
- report_fatal_error(Twine(ErrMsg));
+ report_fatal_error(Twine(ErrMsg), GenCrashDiag);
}
} // end namespace llvm
More information about the llvm-commits
mailing list