diff --git a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp --- a/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp +++ b/compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp @@ -9,7 +9,9 @@ f = [&x]() __attribute__((noinline)) { return x; // BOOM // CHECK: ERROR: AddressSanitizer: stack-use-after-scope - // CHECK: #0 0x{{.*}} in {{.*}}use-after-scope-capture.cpp:[[@LINE-2]] + // We cannot assert the line, after the argument promotion pass this crashes + // in the BOOM line below instead, when the ref gets turned into a value. + // CHECK: #0 0x{{.*}} in {{.*}}use-after-scope-capture.cpp }; } return f(); // BOOM