]> granicus.if.org Git - clang/commit
Debug info: Apply an empty debug location for global OpenMP destructors.
authorAdrian Prantl <aprantl@apple.com>
Sun, 24 Apr 2016 22:22:29 +0000 (22:22 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sun, 24 Apr 2016 22:22:29 +0000 (22:22 +0000)
commitc9192fab899a2b4d5b8ae436c9910c4ef6708120
treed0e9297db07e8fd70e85d8315d8a6d8d868e7a53
parent244ba9735889c3741f4b41c978796cdc342e6a0a
Debug info: Apply an empty debug location for global OpenMP destructors.
LLVM really wants a debug location on every inlinable call in a function
with debug info, because it otherwise cannot set up inlining debug info.

This change applies an artificial line 0 debug location (which is how
DWARF marks automatically generated code that has no corresponding
source code) to the .__kmpc_global_dtor_. functions to avoid the
LLVM Verifier complaining.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/OpenMP/threadprivate_codegen.cpp