[PATCH] D73742: [Clang][Driver] After default -fintegrated-cc1, fix report_fatal_error no longer generates preprocessed source + reproducer.sh

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 8 10:01:54 PST 2020


aganea added inline comments.


================
Comment at: clang/tools/driver/cc1_main.cpp:73
   // defined as an internal software error.  Otherwise, exit with status 1.
-  exit(GenCrashDiag ? 70 : 1);
+  llvm::sys::Process::Exit(GenCrashDiag ? 70 : 1);
 }
----------------
arichardson wrote:
> I don't think it matters (yet?) but we should probably also use llvm::sys::Process::Exit() in cc1as_main.cpp?
Changed cc1as_main.cpp as well.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73742/new/

https://reviews.llvm.org/D73742





More information about the cfe-commits mailing list