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:
919ffbf
)
Fix minor bug in previous checkin
author
Chris Lattner
<sabre@nondot.org>
Sun, 29 Jun 2003 22:36:31 +0000
(22:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 29 Jun 2003 22:36:31 +0000
(22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6986
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/DataStructure/DataStructure.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/DataStructure/DataStructure.cpp
b/lib/Analysis/DataStructure/DataStructure.cpp
index b2eac93fda7bd7dc90a4e0349a7ebb856131704a..ea593de2f56f8a9597a45780c5bfdad9eea0abf9 100644
(file)
--- a/
lib/Analysis/DataStructure/DataStructure.cpp
+++ b/
lib/Analysis/DataStructure/DataStructure.cpp
@@
-406,9
+406,7
@@
bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset,
// Ok, we are getting desperate now. Check for physical subtyping, where we
// just require each element in the node to be compatible.
- assert(NewTySize <= SubTypeSize &&
- "Expected smaller type merging into this one!");
- if (NewTySize && NewTySize < 256 &&
+ if (NewTySize <= SubTypeSize && NewTySize && NewTySize < 256 &&
SubTypeSize && SubTypeSize < 256 &&
ElementTypesAreCompatible(NewTy, SubType))
return false;