[llvm] r310242 - [asan] Fix asan dynamic shadow check before copyArgsPassedByValToAllocas
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 00:35:34 PDT 2017
Author: vitalybuka
Date: Mon Aug 7 00:35:33 2017
New Revision: 310242
URL: http://llvm.org/viewvc/llvm-project?rev=310242&view=rev
Log:
[asan] Fix asan dynamic shadow check before copyArgsPassedByValToAllocas
Modified:
llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=310242&r1=310241&r2=310242&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Mon Aug 7 00:35:33 2017
@@ -756,7 +756,7 @@ struct FunctionStackPoisoner : public In
bool runOnFunction() {
if (!ClStack) return false;
- if (ClRedzoneByvalArgs && !ClForceDynamicShadow)
+ if (ClRedzoneByvalArgs && Mapping.Offset != kDynamicShadowSentinel)
copyArgsPassedByValToAllocas();
// Collect alloca, ret, lifetime instructions etc.
More information about the llvm-commits
mailing list