[all-commits] [llvm/llvm-project] 7f4700: [mlir][linalg] Use cast instead of dyn_cast that's...
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Tue Jan 11 06:08:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7f47005dcc6a1b78de9abca03db4115db7ad4aa1
https://github.com/llvm/llvm-project/commit/7f47005dcc6a1b78de9abca03db4115db7ad4aa1
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Log Message:
-----------
[mlir][linalg] Use cast instead of dyn_cast that's always dereferenced
This turns a random nullptr deref into an assertion failure in case
`tensor::registerInferTypeOpInterfaceExternalModels` isn't called.
More information about the All-commits
mailing list