Skip to content

Commit 25f1e0c

Browse files
committed
[NFC][DeviceSanitizer] replace deprecated startswith
1 parent 73adce2 commit 25f1e0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ static bool isJointMatrixAccess(Value *V) {
15411541
for (Value *Op : CI->args()) {
15421542
if (auto *AI = dyn_cast<AllocaInst>(Op->stripInBoundsOffsets()))
15431543
if (auto *TargetTy = getTargetExtType(AI->getAllocatedType()))
1544-
return TargetTy->getName().startswith("spirv.") &&
1544+
return TargetTy->getName().starts_with("spirv.") &&
15451545
TargetTy->getName().contains("Matrix");
15461546
}
15471547
}

0 commit comments

Comments
 (0)