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:
99939d3
)
Fix a nasty thinko in my previous commit.
author
Chris Lattner
<sabre@nondot.org>
Fri, 28 Jan 2005 23:17:27 +0000
(23:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 28 Jan 2005 23:17:27 +0000
(23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19881
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/ConstantFold.cpp
b/lib/VMCore/ConstantFold.cpp
index dd947404ce6a019c67450cdd17794d0a1896e01e..772b79a29a4a276ed5c2e3f42399cae37acc50be 100644
(file)
--- a/
lib/VMCore/ConstantFold.cpp
+++ b/
lib/VMCore/ConstantFold.cpp
@@
-631,7
+631,7
@@
static bool isMaybeZeroSizedType(const Type *Ty) {
// If all of elements have zero size, this does too.
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
- if (!isMaybeZeroSizedType(
Ty
)) return false;
+ if (!isMaybeZeroSizedType(
STy->getElementType(i)
)) return false;
return true;
} else if (const ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {