summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-02-08 15:34:12 +0000
committerJames Y Knight <jyknight@google.com>2019-02-08 15:34:12 +0000
commitf5f1b0e59eb7d418cab8f694a3644c306eba3776 (patch)
treed6021d029a8ce1f11aa610761fe75371011c7ad7 /clang/lib/Frontend/CompilerInstance.cpp
parentd65b3cb4895f66b33d6ba46d512521953fa9aae1 (diff)
downloadbcm5719-llvm-f5f1b0e59eb7d418cab8f694a3644c306eba3776.tar.gz
bcm5719-llvm-f5f1b0e59eb7d418cab8f694a3644c306eba3776.zip
[opaque pointer types] Cleanup CGBuilder's Create*GEP.
Some of these functions take some extraneous arguments, e.g. EltSize, Offset, which are computable from the Type and DataLayout. Add some asserts to ensure that the computed values are consistent with the passed-in values, in preparation for eliminating the extraneous arguments. This also asserts that the Type is an Array for the calls named "Array" and a Struct for the calls named "Struct". Then, correct a couple of errors: 1. Using CreateStructGEP on an array type. (this causes the majority of the test differences, as struct GEPs are created with i32 indices, while array GEPs are created with i64 indices) 2. Passing the wrong Offset to CreateStructGEP in TargetInfo.cpp on x86-64 NACL (which uses 32-bit pointers). Differential Revision: https://reviews.llvm.org/D57766 llvm-svn: 353529
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud