[all-commits] [llvm/llvm-project] faace3: [Clang][Driver] After default -fintegrated-cc1, ma...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Tue Feb 11 07:18:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: faace365088a2a3a4cb1050a9facfc34a7a56577
      https://github.com/llvm/llvm-project/commit/faace365088a2a3a4cb1050a9facfc34a7a56577
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M clang/test/Driver/crash-report.c
    M clang/tools/driver/cc1_main.cpp
    M clang/tools/driver/cc1as_main.cpp
    M llvm/include/llvm/Support/CrashRecoveryContext.h
    M llvm/include/llvm/Support/Process.h
    M llvm/lib/Support/CrashRecoveryContext.cpp
    M llvm/lib/Support/ErrorHandling.cpp
    M llvm/lib/Support/Process.cpp

  Log Message:
  -----------
  [Clang][Driver] After default -fintegrated-cc1, make llvm::report_fatal_error() generate preprocessed source + reproducer.sh again.

Added a test for #pragma clang __debug llvm_fatal_error to test for the original issue.
Added llvm::sys::Process::Exit() and replaced ::exit() in places where it was appropriate. This new function would call the current CrashRecoveryContext if one is running on the same thread; or call ::exit() otherwise.

Fixes PR44705.

Differential Revision: https://reviews.llvm.org/D73742




More information about the All-commits mailing list