diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index fa8ec000f61ca..10247fffb107d 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -1541,7 +1541,7 @@ static bool isJointMatrixAccess(Value *V) { for (Value *Op : CI->args()) { if (auto *AI = dyn_cast(Op->stripInBoundsOffsets())) if (auto *TargetTy = getTargetExtType(AI->getAllocatedType())) - return TargetTy->getName().startswith("spirv.") && + return TargetTy->getName().starts_with("spirv.") && TargetTy->getName().contains("Matrix"); } }