summaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/SDNodeInfoEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/SDNodeInfoEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/SDNodeInfoEmitter.cpp b/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
index 5dff3862fa30..0f2f1178bf93 100644
--- a/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
+++ b/llvm/utils/TableGen/SDNodeInfoEmitter.cpp
@@ -201,7 +201,7 @@ static void emitTypeConstraint(
unsigned OtherOpNo = 0;
unsigned NumHwModes = 0;
unsigned VTByHwModeOffset = 0;
- MVT::SimpleValueType VT = MVT::INVALID_SIMPLE_VALUE_TYPE;
+ MVT VT = MVT::INVALID_SIMPLE_VALUE_TYPE;
switch (C.ConstraintType) {
case SDTypeConstraint::SDTCisVT:
@@ -212,7 +212,7 @@ static void emitTypeConstraint(
[[fallthrough]];
case SDTypeConstraint::SDTCVecEltisVT:
if (C.VVT.isSimple()) {
- VT = C.VVT.getSimple().SimpleTy;
+ VT = C.VVT.getSimple();
} else {
NumHwModes = C.VVT.size();
assert(NumHwModes && "Empty type set?");