Fix minor bug in previous checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-29 22:36:31 +00:00
parent 919ffbf977
commit 06e24c8447

View File

@ -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;