We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b013c6 commit b8d0906Copy full SHA for b8d0906
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -609,8 +609,8 @@ StringRef AMDGPUTargetMachine::getFeatureString(const Function &F) const {
609
/// and must be preserved.
610
static bool mustPreserveGV(const GlobalValue &GV) {
611
if (const Function *F = dyn_cast<Function>(&GV))
612
- return F->isDeclaration() || F->getName().startswith("__asan_") ||
613
- F->getName().startswith("__sanitizer_") ||
+ return F->isDeclaration() || F->getName().starts_with("__asan_") ||
+ F->getName().starts_with("__sanitizer_") ||
614
AMDGPU::isEntryFunctionCC(F->getCallingConv()) ||
615
F->hasFnAttribute("sycl-module-id");
616
0 commit comments