diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:44:44 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:44:44 +0800 |
| commit | 00559425828f56e26d80f5142db1052b9db4ca80 (patch) | |
| tree | 40ca15b18af65b681c97cddf6a0a9a8bed509a5f | |
| parent | 1481dd5b62a8a914e593206d72e1aff99ced2af4 (diff) | |
| download | rcc-project-00559425828f56e26d80f5142db1052b9db4ca80.tar.gz rcc-project-00559425828f56e26d80f5142db1052b9db4ca80.tar.xz | |
[MIR] Merge identical scalar type branches
| -rw-r--r-- | backend/lib/CodeGen/MIRParser/MIParser.cpp | 6 |
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; |
