mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Correct syntax of getelementptr in regression test. NFC
Bonus: unused variable removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236116 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
2ce57c3359
commit
bff4c86723
2 files changed
+10
-13
No files matched your search
@@ -288,14 +288,11 @@ bool SimplifyIndvar::strengthenOverflowingOperation(BinaryOperator *BO,
|
||||
|
||||
IntegerType *IT = cast<IntegerType>(IVOperand->getType());
|
||||
Value *OtherOperand = nullptr;
|
||||
int OtherOperandIdx = -1;
|
||||
if (BO->getOperand(0) == IVOperand) {
|
||||
OtherOperand = BO->getOperand(1);
|
||||
OtherOperandIdx = 1;
|
||||
} else {
|
||||
assert(BO->getOperand(1) == IVOperand && "only other use!");
|
||||
OtherOperand = BO->getOperand(0);
|
||||
OtherOperandIdx = 0;
|
||||
}
|
||||
|
||||
bool Changed = false;
|
||||
|
||||
Reference in new issue
Block a user