aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/lib/CodeGen/MIRParser/MIParser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/backend/lib/CodeGen/MIRParser/MIParser.cpp b/backend/lib/CodeGen/MIRParser/MIParser.cpp
index b44701b..a98dbd3 100644
--- a/backend/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/backend/lib/CodeGen/MIRParser/MIParser.cpp
@@ -562,11 +562,7 @@ bool MIParser::Impl::parseScalarLowLevelType(const MIToken &TypeToken, LowLevelT
std::string_view Digits;
if (Spelling.starts_with("bf")) {
Digits = Spelling.substr(2);
- } else if (Spelling.starts_with('s')) {
- Digits = Spelling.substr(1);
- } else if (Spelling.starts_with('i')) {
- Digits = Spelling.substr(1);
- } else if (Spelling.starts_with('f')) {
+ } else if (Spelling.starts_with('s') || Spelling.starts_with('i') || Spelling.starts_with('f')) {
Digits = Spelling.substr(1);
} else if (Spelling.starts_with('p')) {
Kind = ScalarKind::Pointer;