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:
b4b2e9d
)
Fix stupid bug in my checkin yesterday
author
Chris Lattner
<sabre@nondot.org>
Sat, 8 May 2004 22:41:42 +0000
(22:41 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 8 May 2004 22:41:42 +0000
(22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13429
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 11f6937a8ee4456b77673cb6527f099e9bb8c1b0..67b99c56e7e54d6aaf32b4488dd1e65771917ff0 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2624,8
+2624,7
@@
Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
bool EndsWithSequential = false;
for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)),
E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I)
- if (!isa<StructType>(*I))
- EndsWithSequential = true;
+ EndsWithSequential = !isa<StructType>(*I);
// Can we combine the two pointer arithmetics offsets?
if (EndsWithSequential) {