[all-commits] [llvm/llvm-project] 66face: Re-land [DebugInfo] Add debug location to stubs ge...

Alexandre Ganea via All-commits all-commits at lists.llvm.org
Thu Oct 8 17:50:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 66face6aa0f5f68de56067b0dff3295e47fdf66c
      https://github.com/llvm/llvm-project/commit/66face6aa0f5f68de56067b0dff3295e47fdf66c
  Author: Alexandre Ganea <alexandre.ganea at ubisoft.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M clang/include/clang/AST/GlobalDecl.h
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/lib/CodeGen/CGDeclCXX.cpp
    M clang/test/CodeGenCXX/aix-static-init-debug-info.cpp
    A clang/test/CodeGenCXX/debug-info-atexit-stub.cpp
    A clang/test/CodeGenCXX/debug-info-destroy-helper.cpp
    M clang/test/CodeGenCXX/debug-info-global-ctor-dtor.cpp
    M clang/test/CodeGenCXX/debug-info-line.cpp

  Log Message:
  -----------
  Re-land [DebugInfo] Add debug location to stubs generated by CGDeclCXX and mark them as artificial

Previously, when clang was compiled with -DLLVM_ENABLE_ASSERTIONS=ON, the added tests were displaying:

inlinable function call in a function with debug info must have a !dbg location
  call void @"??1?$c at UB@@@@QEAA at XZ"(%struct.c* @"?f@?1??d@@YAPEAU?$c at UB@@@@XZ at 4U2@A")
fatal error: error in backend: Broken module found, compilation aborted!
Stack dump:
0.      Program arguments: <f:\svn\buildninja\bin\clang -cc1 -emit-llvm debug-info-no-location.cpp> -gcodeview -debug-info-kind=limited
1.      <eof> parser at end of file
2.      Per-function optimization

Fixes PR43012

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




More information about the All-commits mailing list