summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index d49f3b5b702..7ad3f186cb0 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -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.
}
}
OpenPOWER on IntegriCloud