[compiler-rt] 45e2c6c - [asan][test] Fix use-after-scope-capture test after D148269
Paul Kirth via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 14 17:10:58 PDT 2023
Author: Paul Kirth
Date: 2023-04-15T00:10:49Z
New Revision: 45e2c6c5cd52833af09c09741ec8dd7e7c925019
URL: https://github.com/llvm/llvm-project/commit/45e2c6c5cd52833af09c09741ec8dd7e7c925019
DIFF: https://github.com/llvm/llvm-project/commit/45e2c6c5cd52833af09c09741ec8dd7e7c925019.diff
LOG: [asan][test] Fix use-after-scope-capture test after D148269
After enabling ArgPromotion at lower opt levels, the body of this test
was optimized away, and the CHECK lines no longer functioned.
Setting -O0 is a hammer, but gets the test passing again, until code owners
can find a better solution.
Reviewed By: fmayer
Differential Revision: https://reviews.llvm.org/D148396
Added:
Modified:
compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp
index 2e27a16811ef..0eca27181e54 100644
--- a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp
+++ b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp
@@ -1,4 +1,4 @@
-// RUN: %clangxx_asan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
#include <functional>
More information about the llvm-commits
mailing list