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 992abdae26
commit 205d1acfba
1 changed files with 1 additions and 3 deletions

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;