[SelectionDAG] Add an assert that the input VT and output VT for ISD::FREEZE are the same.

Differential Revision: https://reviews.llvm.org/D77092
This commit is contained in:
Craig Topper 2020-03-30 22:01:37 -07:00
parent 339b34266c
commit 2a07221cf3
1 changed files with 3 additions and 0 deletions

View File

@ -4550,6 +4550,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT,
unsigned OpOpcode = Operand.getNode()->getOpcode();
switch (Opcode) {
case ISD::FREEZE:
assert(VT == Operand.getValueType() && "Unexpected VT!");
break;
case ISD::TokenFactor:
case ISD::MERGE_VALUES:
case ISD::CONCAT_VECTORS: