[ASan] Simplify check added in r168861. Bail out from module pass early if the module is blacklisted.

llvm-svn: 168913
This commit is contained in:
Alexey Samsonov 2012-11-29 18:27:01 +00:00
parent 76561e9741
commit 9a956e8cd2
1 changed files with 2 additions and 2 deletions

View File

@ -620,6 +620,7 @@ bool AddressSanitizerModule::runOnModule(Module &M) {
if (!TD)
return false;
BL.reset(new BlackList(ClBlackListFile));
if (BL->isIn(M)) return false;
DynamicallyInitializedGlobals.Init(M);
C = &(M.getContext());
IntptrTy = Type::getIntNTy(*C, TD->getPointerSizeInBits());
@ -870,8 +871,7 @@ bool AddressSanitizer::maybeInsertAsanInitAtFunctionEntry(Function &F) {
static bool isNoReturnCall(CallInst *CI) {
if (CI->doesNotReturn()) return true;
Function *F = CI->getCalledFunction();
if (F && F->doesNotReturn()) return true;
return false;
return (F && F->doesNotReturn());
}
bool AddressSanitizer::runOnFunction(Function &F) {