summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2017-11-15 10:57:05 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2017-11-15 10:57:05 +0000
commit294e689509fac4ce335b5abae944684b76ee7cdc (patch)
tree4b1bc63f98ef19b387d73e27fd2f31a07ffaab10 /llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
parentee7a96229eb5271e4f5172adc9c52a4fa7601924 (diff)
downloadbcm5719-llvm-294e689509fac4ce335b5abae944684b76ee7cdc.tar.gz
bcm5719-llvm-294e689509fac4ce335b5abae944684b76ee7cdc.zip
[DebugInfo] Fix potential CU mismatch for SubprogramScopeDIEs.
In constructAbstractSubprogramScopeDIE there can be a potential mismatch between `this` and the CU of ContextDIE when a scope is shared between two DISubprograms belonging to a different CU. In that case, `this` is the CU that was specified in the IR, but the CU of ContextDIE is that of the first subprogram that was emitted. This patch fixes the mismatch by looking up the CU of ContextDIE, and switching to use that. This fixes PR35212 (https://bugs.llvm.org/show_bug.cgi?id=35212) Patch by Philip Craig! Differential revision: https://reviews.llvm.org/D39981 llvm-svn: 318289
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantIslandPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud