mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Update llvm-gcc-4.2 and dragonegg after converting ConstantFolder APIs
to use ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12fc16f195
commit
14732a1f42
@ -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…
x
Reference in New Issue
Block a user