[all-commits] [llvm/llvm-project] a81b93: [mlir][Linalg] Fix ASAN bug

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Thu Oct 1 04:04:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a81b938b6dee0e1ed4dd44e7d59325d0aa4774cc
      https://github.com/llvm/llvm-project/commit/a81b938b6dee0e1ed4dd44e7d59325d0aa4774cc
  Author: Nicolas Vasilache <ntv at google.com>
  Date:   2020-10-01 (Thu, 01 Oct 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h

  Log Message:
  -----------
  [mlir][Linalg] Fix ASAN bug

```
 LinalgTilingOptions &setTileSizes(ValueRange ts)
```
makes it all too easy to create stack-use-after-return errors.

In particular, c694588fc52a8845174fee06ad0bcfa338e87816 introduced one such issue.

Instead just take a copy in the lambda and be done with it.




More information about the All-commits mailing list