summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/readonly-aliases.ll
Commit message (Collapse)AuthorAgeFilesLines
* ARM: handle checking aliases with out-of-bounds GEPsSaleem Abdulrasool2018-10-241-0/+17
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
OpenPOWER on IntegriCloud