From 00559425828f56e26d80f5142db1052b9db4ca80 Mon Sep 17 00:00:00 2001 From: Richard-Qin-X Date: Sat, 29 Aug 2026 00:44:44 +0800 Subject: [MIR] Merge identical scalar type branches --- backend/lib/CodeGen/MIRParser/MIParser.cpp | 6 +----- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3