diff options
author | Eric Christopher <echristo@apple.com> | 2010-02-02 22:29:26 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-02-02 22:29:26 +0000 |
commit | 8334f068c4a7df344da704fdde49c2c6c0b18799 (patch) | |
tree | d191a0e08bfc7c51441496432ed75dfd7b3a933f /lib/Transforms | |
parent | 55fed86353fb39924378dc0e5d29cb273f5e2138 (diff) | |
download | external_llvm-8334f068c4a7df344da704fdde49c2c6c0b18799.zip external_llvm-8334f068c4a7df344da704fdde49c2c6c0b18799.tar.gz external_llvm-8334f068c4a7df344da704fdde49c2c6c0b18799.tar.bz2 |
Reformat my last patch slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/InstCombine/InstCombineCalls.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index d49f3b5..7ad3f18 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/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. } } |