[Support] Forward GenCrashDiag argument from report_fatal_error(Error, bool)
authorAlex Bradbury <asb@igalia.com>
Wed, 17 May 2023 10:16:15 +0000 (11:16 +0100)
committerAlex Bradbury <asb@igalia.com>
Wed, 17 May 2023 10:16:15 +0000 (11:16 +0100)
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

llvm/lib/Support/Error.cpp

index fbe86f2..b339b70 100644 (file)
@@ -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