summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorHsiangkai Wang <hsiangkai@gmail.com>2018-09-26 04:19:23 +0000
committerHsiangkai Wang <hsiangkai@gmail.com>2018-09-26 04:19:23 +0000
commit55321d82bd329bb88799e5a853a256b4a70e4106 (patch)
treece15be46afb513db09febfef69cef0e41b2b3cdd /clang/lib/CodeGen/CodeGenModule.cpp
parentc1275e72cb47b7a9ef5a6a2ffe1961f3e0025528 (diff)
downloadbcm5719-llvm-55321d82bd329bb88799e5a853a256b4a70e4106.tar.gz
bcm5719-llvm-55321d82bd329bb88799e5a853a256b4a70e4106.zip
[DebugInfo] Do not generate address info for removed debug labels.
In some senario, LLVM will remove llvm.dbg.labels in IR. For example, when the labels are in unreachable blocks, these labels will not be generated in LLVM IR. In the case, these debug labels will have address zero as their address. It is not legal address for debugger to set breakpoints or query sources. So, the patch inhibits the address info (DW_AT_low_pc) of removed labels. Fix build failed in BuildBot, clang-stage1-cmake-RA-incremental, on macOS. Differential Revision: https://reviews.llvm.org/D51908 llvm-svn: 343062
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud