projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a94de2
)
eliminate warning
author
Gabor Greif
<ggreif@gmail.com>
Fri, 12 Oct 2007 07:44:54 +0000
(07:44 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Fri, 12 Oct 2007 07:44:54 +0000
(07:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42892
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 9e2905781cff714511c075ba40f9b7d4012828a1..2c88279afb092c3fb0fa629bd27a458bdf5707ea 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-8643,7
+8643,7
@@
Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
// converted to match the type of the cast, don't touch this.
if (isa<AllocationInst>(BCI->getOperand(0))) {
// See if the bitcast simplifies, if so, don't nuke this GEP yet.
- if (
Instruction *I =
visitBitCast(*BCI))
+ if (visitBitCast(*BCI))
return &GEP;
}
return new BitCastInst(BCI->getOperand(0), GEP.getType());