[all-commits] [llvm/llvm-project] 984c2c: [mlir] verify against nullptr payload in transform...
ftynse via All-commits
all-commits at lists.llvm.org
Mon Jan 9 05:03:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 984c2c8cb343e9a9d43b085f27f2f2ac3253cae7
https://github.com/llvm/llvm-project/commit/984c2c8cb343e9a9d43b085f27f2f2ac3253cae7
Author: Alex Zinenko <zinenko at google.com>
Date: 2023-01-09 (Mon, 09 Jan 2023)
Changed paths:
M mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h
M mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
M mlir/test/Dialect/Transform/test-interpreter.mlir
M mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.cpp
M mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.td
Log Message:
-----------
[mlir] verify against nullptr payload in transform dialect
When establishing the correspondence between transform values and
payload operations or parameters, check that the latter are non-null and
report errors. This was previously allowed for exotic cases of partially
successfull transformations with "apply each" trait, but was dangerous.
The "apply each" implementation was reworked to remove the need for this
functionality, so this can now be hardned to avoid null pointer
dereferences.
Reviewed By: nicolasvasilache
Differential Revision: https://reviews.llvm.org/D141142
More information about the All-commits
mailing list