diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2016-08-16 16:24:10 +0000 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2016-08-16 16:24:10 +0000 |
| commit | 1ce73ef11c7a00e20f8c46ac66fa6cf272c28682 (patch) | |
| tree | aa37b64f63b7e1ce5def0cd9ca70e5089fee948e /llvm/test | |
| parent | 1e5b2d1611fbaf46b004b80f3800729ec68b2a6b (diff) | |
| download | bcm5719-llvm-1ce73ef11c7a00e20f8c46ac66fa6cf272c28682.tar.gz bcm5719-llvm-1ce73ef11c7a00e20f8c46ac66fa6cf272c28682.zip | |
[Asan] Unpoison red zones even if use-after-scope was disabled with runtime flag
Summary: PR27453
Reviewers: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D23481
llvm-svn: 278818
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll | 6 | ||||
| -rw-r--r-- | llvm/test/Instrumentation/AddressSanitizer/lifetime.ll | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/llvm/test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll b/llvm/test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll index d41dea12be4..e447136c932 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/lifetime-uar-uas.ll @@ -28,9 +28,9 @@ entry: ; CHECK-UAS: call void @__asan_poison_stack_memory(i64 %{{[^ ]+}}, i64 1) ; Unpoison memory at function exit in UAS mode. - ; CHECK-UAS: call void @__asan_unpoison_stack_memory(i64 %{{[^ ]+}}, i64 64) - ; CHECK-UAS: ret void - + ; CHECK-UAS: store i64 0 + ; CHECK-UAS-NEXT: call void @__asan_unpoison_stack_memory(i64 %{{[^ ]+}}, i64 64) + ; CHECK-UAS: ret i32 0 ret i32 0 } diff --git a/llvm/test/Instrumentation/AddressSanitizer/lifetime.ll b/llvm/test/Instrumentation/AddressSanitizer/lifetime.ll index dc87d50e7a4..cf7519764e0 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/lifetime.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/lifetime.ll @@ -108,7 +108,11 @@ entry: ; CHECK: __asan_poison_stack_memory ret void - ; CHECK: __asan_unpoison_stack_memory + ; CHECK: store i64 0 + ; CHECK: store i64 0 + ; CHECK: store i64 0 + ; CHECK: store i32 0 + ; CHECK-NEXT: __asan_unpoison_stack_memory } define void @zero_sized(i64 %a) #0 { |

