mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
address comments from: https://reviews.llvm.org/D24566
using startswith instead of find. llvm-svn: 281617
This commit is contained in:
parent
f3651de373
commit
4c5566730c
@ -1883,7 +1883,7 @@ bool AddressSanitizer::runOnFunction(Function &F) {
|
||||
if (&F == AsanCtorFunction) return false;
|
||||
if (F.getLinkage() == GlobalValue::AvailableExternallyLinkage) return false;
|
||||
if (!ClDebugFunc.empty() && ClDebugFunc == F.getName()) return false;
|
||||
if (F.getName().find("__asan_") != std::string::npos) return false;
|
||||
if (F.getName().startswith("__asan_") != std::string::npos) return false;
|
||||
|
||||
// If needed, insert __asan_init before checking for SanitizeAddress attr.
|
||||
// This function needs to be called even if the function body is not
|
||||
|
@ -21,4 +21,4 @@ entry:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
; CHECK: declare void @__asan_init()
|
||||
; CHECK: declare void @__asan_init()
|
||||
|
Loading…
x
Reference in New Issue
Block a user