mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-05 23:23:53 +00:00
Convert GetElementPtrInst to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -124,7 +124,7 @@ TEST_F(CloneInstruction, Inbounds) {
|
||||
Constant *Z = Constant::getNullValue(Type::getInt32Ty(context));
|
||||
std::vector<Value *> ops;
|
||||
ops.push_back(Z);
|
||||
GetElementPtrInst *GEP = GetElementPtrInst::Create(V, ops.begin(), ops.end());
|
||||
GetElementPtrInst *GEP = GetElementPtrInst::Create(V, ops);
|
||||
EXPECT_FALSE(this->clone(GEP)->isInBounds());
|
||||
|
||||
GEP->setIsInBounds();
|
||||
|
||||
Reference in New Issue
Block a user