[all-commits] [llvm/llvm-project] 45e2c6: [asan][test] Fix use-after-scope-capture test afte...

Paul Kirth via All-commits all-commits at lists.llvm.org
Fri Apr 14 17:11:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45e2c6c5cd52833af09c09741ec8dd7e7c925019
      https://github.com/llvm/llvm-project/commit/45e2c6c5cd52833af09c09741ec8dd7e7c925019
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2023-04-15 (Sat, 15 Apr 2023)

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

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




More information about the All-commits mailing list