mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 17:58:26 +00:00
Reformat my last patch slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55fed86353
commit
8334f068c4
@ -636,9 +636,9 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
||||
const Type *ReturnTy = CI.getType();
|
||||
Value *Op1 = II->getOperand(1);
|
||||
|
||||
// If we're a constant expr then we just return the number of bytes
|
||||
// left in whatever we're indexing. Since it's constant there's no
|
||||
// need for maximum or minimum bytes.
|
||||
// If we're a constant expr then we just return the number of bytes
|
||||
// left in whatever we're indexing. Since it's constant there's no
|
||||
// need for maximum or minimum bytes.
|
||||
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Op1)) {
|
||||
// If this isn't a GEP give up.
|
||||
if (CE->getOpcode() != Instruction::GetElementPtr) return 0;
|
||||
@ -665,7 +665,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
||||
ConstantInt::get(ReturnTy,
|
||||
((numElems - indx) * sizeofElem)));
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: Add more types here.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user