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

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


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 92f7aebe2d7e03d7d04b4d2f978482268b63aa7f
      https://github.com/llvm/llvm-project/commit/92f7aebe2d7e03d7d04b4d2f978482268b63aa7f
  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

(cherry picked from commit 28ad9fc20823678881baa0d723834b88ea9e8e3a)




More information about the All-commits mailing list