[all-commits] [llvm/llvm-project] f59311: Mark lambda in use-after-scope-capture.cpp as noin...

aeubanks via All-commits all-commits at lists.llvm.org
Fri Jun 5 09:04:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f59311e31dec9d439819d38353ac9fb098f9547b
      https://github.com/llvm/llvm-project/commit/f59311e31dec9d439819d38353ac9fb098f9547b
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-06-05 (Fri, 05 Jun 2020)

  Changed paths:
    M compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list