Skip to content

Commit b8d0906

Browse files
authored
Update String API after resolution (#12147)
1 parent 8b013c6 commit b8d0906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,8 @@ StringRef AMDGPUTargetMachine::getFeatureString(const Function &F) const {
609609
/// and must be preserved.
610610
static bool mustPreserveGV(const GlobalValue &GV) {
611611
if (const Function *F = dyn_cast<Function>(&GV))
612-
return F->isDeclaration() || F->getName().startswith("__asan_") ||
613-
F->getName().startswith("__sanitizer_") ||
612+
return F->isDeclaration() || F->getName().starts_with("__asan_") ||
613+
F->getName().starts_with("__sanitizer_") ||
614614
AMDGPU::isEntryFunctionCC(F->getCallingConv()) ||
615615
F->hasFnAttribute("sycl-module-id");
616616

0 commit comments

Comments
 (0)