[TableGen] Make sure EnforceSameSize populates the type sets if necessary.

This was found by another commit I'm working on.

llvm-svn: 295578
This commit is contained in:
Craig Topper 2017-02-18 22:53:38 +00:00
parent b092166a76
commit f6564c991b
1 changed files with 6 additions and 0 deletions

View File

@ -644,6 +644,12 @@ bool EEVT::TypeSet::EnforceSameSize(EEVT::TypeSet &VTOperand,
bool MadeChange = false;
if (isCompletelyUnknown())
MadeChange = FillWithPossibleTypes(TP);
if (VTOperand.isCompletelyUnknown())
MadeChange = VTOperand.FillWithPossibleTypes(TP);
// If we know one of the types, it forces the other type agree.
if (isConcrete()) {
MVT IVT = getConcrete();