mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
GlobalISel: Assert if MoreElements uses a non-vector type
This commit is contained in:
parent
56e077581a
commit
e0193632ad
@ -148,7 +148,8 @@ static bool mutationIsSane(const LegalizeRule &Rule,
|
||||
if (NewTy.getNumElements() <= OldElts)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else if (Rule.getAction() == MoreElements)
|
||||
return false;
|
||||
|
||||
// Make sure the element type didn't change.
|
||||
return NewTy.getScalarType() == OldTy.getScalarType();
|
||||
|
Loading…
Reference in New Issue
Block a user