Mark lambda in use-after-scope-capture.cpp as noinline
authorArthur Eubanks <aeubanks@google.com>
Thu, 4 Jun 2020 20:08:35 +0000 (13:08 -0700)
committerArthur Eubanks <aeubanks@google.com>
Fri, 5 Jun 2020 16:03:38 +0000 (09:03 -0700)
commitf59311e31dec9d439819d38353ac9fb098f9547b
tree8bceb1ec4fb509d9f9e5ef3d806ef5b40ca60872
parentd194ff31cf76e888116bc25781825edc26855a1c
Mark lambda in use-after-scope-capture.cpp as noinline

Summary:
As explained in https://bugs.llvm.org/show_bug.cgi?id=46208,
symbolization on Windows after inlining and around
lambdas/std::functions doesn't work very well. Under the new pass
manager, there is inlining at -O1.
use-after-scope-capture.cpp checks that the symbolization points to the
line containing "return x;", but the combination of
Windows/inlining/lambdas makes the symbolization point to the line
"f = [&x]() {".

Mark the lambda as noinline since this test is not a test for
symbolization.

Reviewers: hans, dblaikie, vitalybuka

Subscribers: #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D81193
compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp