Skip to content

Commit

Permalink
[MIRParser] Simplify a string comparison (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Feb 4, 2024
1 parent a37e8b8 commit 1b33b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/MIRParser/MIRParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1b33b3f

Please sign in to comment.