mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
[dfsan] Treat vararg custom functions like unimplemented functions.
Because declarations of these functions can appear in places like autoconf checks, they have to be handled somehow, even though we do not support vararg custom functions. We do so by printing a warning and calling the uninstrumented function, as we do for unimplemented functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -476,7 +476,7 @@ DataFlowSanitizer::WrapperKind DataFlowSanitizer::getWrapperKind(Function *F) {
|
||||
return WK_Functional;
|
||||
if (ABIList.isIn(*F, "discard"))
|
||||
return WK_Discard;
|
||||
if (ABIList.isIn(*F, "custom"))
|
||||
if (ABIList.isIn(*F, "custom") && !F->isVarArg())
|
||||
return WK_Custom;
|
||||
|
||||
return WK_Warning;
|
||||
|
Reference in New Issue
Block a user