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 | d9d900c05b9a6011ade07264b148df4b032b9019 (patch) | |
tree | 95140abe69f78af1fa2197cbbc77ba96e05b18cc /llvm/lib/IR/ConstantFold.h | |
parent | d3c127e232164e1f15eb901d047dbc409ac6198d (diff) | |
download | bcm5719-llvm-d9d900c05b9a6011ade07264b148df4b032b9019.tar.gz bcm5719-llvm-d9d900c05b9a6011ade07264b148df4b032b9019.zip |
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.
llvm-svn: 236752
Diffstat (limited to 'llvm/lib/IR/ConstantFold.h')
-rw-r--r-- | llvm/lib/IR/ConstantFold.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/ConstantFold.h b/llvm/lib/IR/ConstantFold.h index a516abe024e..42a9c6ba908 100644 --- a/llvm/lib/IR/ConstantFold.h +++ b/llvm/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 |