mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
[asan] fix bug 14277 (asan needs to fail with fata error if an __asan interface function is being redefined. Before this fix asan asserts)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b87f6204f
commit
7846c1c851
@ -731,8 +731,9 @@ bool AddressSanitizer::doInitialization(Module &M) {
|
||||
std::string FunctionName = std::string(kAsanReportErrorTemplate) +
|
||||
(AccessIsWrite ? "store" : "load") + itostr(1 << AccessSizeIndex);
|
||||
// If we are merging crash callbacks, they have two parameters.
|
||||
AsanErrorCallback[AccessIsWrite][AccessSizeIndex] = cast<Function>(
|
||||
M.getOrInsertFunction(FunctionName, IRB.getVoidTy(), IntptrTy, NULL));
|
||||
AsanErrorCallback[AccessIsWrite][AccessSizeIndex] =
|
||||
checkInterfaceFunction(M.getOrInsertFunction(
|
||||
FunctionName, IRB.getVoidTy(), IntptrTy, NULL));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user