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:
34fc767
)
Fix bug: test/Regression/Other/2002-03-14-LevelRaiseHang.ll
author
Chris Lattner
<sabre@nondot.org>
Thu, 14 Mar 2002 16:37:04 +0000
(16:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 14 Mar 2002 16:37:04 +0000
(16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1869
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/TransformInternals.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/TransformInternals.cpp
b/lib/Transforms/TransformInternals.cpp
index a68cf87b2be78771c0975a87882a45e258587b9d..5117ce8dd56d73a5122d66b35b5abf307cf4b486 100644
(file)
--- a/
lib/Transforms/TransformInternals.cpp
+++ b/
lib/Transforms/TransformInternals.cpp
@@
-231,7
+231,7
@@
const Type *ConvertableToGEP(const Type *Ty, Value *OffsetVal,
Indices.push_back(ConstantUInt::get(Type::UIntTy, Index));
Offset -= Index*ElSize; // Consume part of the offset
- } else if (
!isa<PointerType>(CompTy) || CompTy == Ty
) {
+ } else if (
isa<ArrayType>(CompTy) || Indices.empty()
) {
// Must be indexing a small amount into the first cell of the array
// Just index into element zero of the array here.
//