mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
[ASan] Simplify check added in r168861. Bail out from module pass early if the module is blacklisted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dff966c9d8
commit
d6f62c8da5
@ -620,6 +620,7 @@ bool AddressSanitizerModule::runOnModule(Module &M) {
|
|||||||
if (!TD)
|
if (!TD)
|
||||||
return false;
|
return false;
|
||||||
BL.reset(new BlackList(ClBlackListFile));
|
BL.reset(new BlackList(ClBlackListFile));
|
||||||
|
if (BL->isIn(M)) return false;
|
||||||
DynamicallyInitializedGlobals.Init(M);
|
DynamicallyInitializedGlobals.Init(M);
|
||||||
C = &(M.getContext());
|
C = &(M.getContext());
|
||||||
IntptrTy = Type::getIntNTy(*C, TD->getPointerSizeInBits());
|
IntptrTy = Type::getIntNTy(*C, TD->getPointerSizeInBits());
|
||||||
@ -870,8 +871,7 @@ bool AddressSanitizer::maybeInsertAsanInitAtFunctionEntry(Function &F) {
|
|||||||
static bool isNoReturnCall(CallInst *CI) {
|
static bool isNoReturnCall(CallInst *CI) {
|
||||||
if (CI->doesNotReturn()) return true;
|
if (CI->doesNotReturn()) return true;
|
||||||
Function *F = CI->getCalledFunction();
|
Function *F = CI->getCalledFunction();
|
||||||
if (F && F->doesNotReturn()) return true;
|
return (F && F->doesNotReturn());
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AddressSanitizer::runOnFunction(Function &F) {
|
bool AddressSanitizer::runOnFunction(Function &F) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user