llvm.org GIT mirror llvm / 41dac4a
[ASan] Behave the same for functions w/o sanitize_address attribute and blacklisted functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209946 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 6 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
13091309 }
13101310
13111311 bool AddressSanitizer::runOnFunction(Function &F) {
1312 if (BL->isIn(F)) return false;
13131312 if (&F == AsanCtorFunction) return false;
13141313 if (F.getLinkage() == GlobalValue::AvailableExternallyLinkage) return false;
13151314 DEBUG(dbgs() << "ASAN instrumenting:\n" << F << "\n");
13181317 // If needed, insert __asan_init before checking for SanitizeAddress attr.
13191318 maybeInsertAsanInitAtFunctionEntry(F);
13201319
1321 if (!F.hasFnAttribute(Attribute::SanitizeAddress))
1320 if (!F.hasFnAttribute(Attribute::SanitizeAddress) || BL->isIn(F))
13221321 return false;
13231322
13241323 if (!ClDebugFunc.empty() && ClDebugFunc != F.getName())