diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-05-07 17:28:58 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-05-07 17:28:58 +0000 |
commit | ad80c2d9ed1a348deaacdf11aa17c40382a97ac7 (patch) | |
tree | 6b9d8382031f3641c6bf9c0e43780376872cde45 /lib/IR/ConstantFold.h | |
parent | aa46024ea3f5190bf6b5ae5a2c2af03ad947efd3 (diff) |
Recommit r236670: [opaque pointer type] Pass explicit pointer type through GEP constant folding""
Clang regressions were caused by more stringent assertion checking
introduced by this change. Small fix needed to clang has been committed
in r236751.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/ConstantFold.h')
-rw-r--r-- | lib/IR/ConstantFold.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/ConstantFold.h b/lib/IR/ConstantFold.h index a516abe024e..42a9c6ba908 100644 --- a/lib/IR/ConstantFold.h +++ b/lib/IR/ConstantFold.h @@ -51,6 +51,10 @@ namespace llvm { ArrayRef<Constant *> Idxs); Constant *ConstantFoldGetElementPtr(Constant *C, bool inBounds, ArrayRef<Value *> Idxs); + Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, + ArrayRef<Constant *> Idxs); + Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds, + ArrayRef<Value *> Idxs); } // End llvm namespace #endif |