forked from OSchip/llvm-project
Update llvm-gcc-4.2 and dragonegg after converting ConstantFolder APIs
to use ArrayRef. llvm-svn: 135672
This commit is contained in:
parent
32351fa820
commit
95f1ebd41b
|
@ -152,6 +152,12 @@ public:
|
|||
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList.data(),
|
||||
IdxList.size()));
|
||||
}
|
||||
Constant *CreateInBoundsGetElementPtr(Constant *C, Constant *Idx) const {
|
||||
// This form of the function only exists to avoid ambiguous overload
|
||||
// warnings about whether to convert Idx to ArrayRef<Constant *> or
|
||||
// ArrayRef<Value *>.
|
||||
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, &Idx, 1));
|
||||
}
|
||||
Constant *CreateInBoundsGetElementPtr(Constant *C,
|
||||
ArrayRef<Value *> IdxList) const {
|
||||
return Fold(ConstantExpr::getInBoundsGetElementPtr(C, IdxList.data(),
|
||||
|
|
Loading…
Reference in New Issue