summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/utils/TableGen/DAGISelMatcherGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
index b22fa875e06..88a4a684f0c 100644
--- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp
@@ -535,7 +535,7 @@ void MatcherGen::EmitResultLeafAsOperand(const TreePatternNode *N,
// in COPY_TO_SUBREG instructions.
if (DI->getDef()->isSubClassOf("RegisterClass")) {
std::string Value = getQualifiedName(DI->getDef()) + "RegClassID";
- AddMatcherNode(new EmitStringIntegerMatcherNode(Value, N->getTypeNum(0)));
+ AddMatcherNode(new EmitStringIntegerMatcherNode(Value, MVT::i32));
ResultOps.push_back(NextRecordedOperandNo++);
return;
}
OpenPOWER on IntegriCloud