summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2018-10-24 00:00:52 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2018-10-24 00:00:52 +0000
commit4005f9a860c3d66090f5572d30cc91c6b52acea2 (patch)
treee749c0da56e74078ee353f70e1e9ce48f51795e2 /clang/lib/CodeGen/CGDebugInfo.cpp
parentdf9f796fbb91fd9c16fab8eb6535f0f5b937e452 (diff)
downloadbcm5719-llvm-4005f9a860c3d66090f5572d30cc91c6b52acea2.tar.gz
bcm5719-llvm-4005f9a860c3d66090f5572d30cc91c6b52acea2.zip
ARM: handle checking aliases with out-of-bounds GEPs
A global alias may use indices which are not considered in bounds. In such a case, accessing the base object will fail as it only peers through inbounds accesses. This pattern is used by the swift compiler to create references to preceeding members in the type metadata. This would cause the code generation to fail when targeting a platform that used ELF as the object file format. Be conservative and fail the read-only check if we run into an alias that we cannot peer through. llvm-svn: 345107
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud