mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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:
parent
919ffbf977
commit
06e24c8447
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user