Skip to content

Commit fc90c3d

Browse files
committed
Use stringref for check
1 parent ddba54e commit fc90c3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,8 @@ static bool requiresSaveVG(const MachineFunction &MF) {
14771477

14781478
static bool matchLibcall(const TargetLowering &TLI, const MachineOperand &MO,
14791479
RTLIB::Libcall LC) {
1480-
return MO.isSymbol() && TLI.getLibcallName(LC) == MO.getSymbolName();
1480+
return MO.isSymbol() &&
1481+
StringRef(TLI.getLibcallName(LC)) == MO.getSymbolName();
14811482
}
14821483

14831484
bool isVGInstruction(MachineBasicBlock::iterator MBBI,

0 commit comments

Comments
 (0)