From 1b33b3f27f8bf3902d754ed83da29f9a6f15e4e1 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 3 Feb 2024 21:43:10 -0800 Subject: [PATCH] [MIRParser] Simplify a string comparison (NFC) --- llvm/lib/CodeGen/MIRParser/MIRParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp index 78d7e62797ce5f..54f55623131b35 100644 --- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp @@ -607,7 +607,7 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS, Twine(VReg.ID.Value) + "'"); Info.Explicit = true; - if (StringRef(VReg.Class.Value).equals("_")) { + if (VReg.Class.Value == "_") { Info.Kind = VRegInfo::GENERIC; Info.D.RegBank = nullptr; } else {