Fix minor bug in previous checkin

llvm-svn: 6986
This commit is contained in:
Chris Lattner 2003-06-29 22:36:31 +00:00
parent 9229da84be
commit 9cb6f34b81

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;