[all-commits] [llvm/llvm-project] 28ad9f: [Clang][Driver] In -fintegrated-cc1 mode, avoid cr...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Fri Mar 13 05:15:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 28ad9fc20823678881baa0d723834b88ea9e8e3a
      https://github.com/llvm/llvm-project/commit/28ad9fc20823678881baa0d723834b88ea9e8e3a
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-03-13 (Fri, 13 Mar 2020)

  Changed paths:
    M clang/lib/Lex/Pragma.cpp
    M clang/tools/driver/driver.cpp
    M llvm/include/llvm/Support/ManagedStatic.h
    M llvm/include/llvm/Support/Timer.h
    M llvm/lib/Support/Timer.cpp

  Log Message:
  -----------
  [Clang][Driver] In -fintegrated-cc1 mode, avoid crashing on exit after a compiler crash

After a crash catched by the CrashRecoveryContext, this patch prevents from accessing dangling pointers in TimerGroup structures before the clang tool exits. Previously, the default TimerGroup had internal linked lists which were still pointing to old Timer or TimerGroup instances, which lived in stack frames released by the CrashRecoveryContext.

Fixes PR45164.

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




More information about the All-commits mailing list