diff options
| author | Felix Schneider <fx.schn@gmail.com> | 2024-03-19 10:43:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-19 10:43:02 +0100 |
| commit | a4b23638d23d603001c19285a7c7535a8ce81317 (patch) | |
| tree | da95a8e5704b5d4ca6062bbc4a5e51b4cc8d0ed6 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 5e379b63fcd942017593d278c8c2313744413904 (diff) | |
[mlir] Don't assert when simplifying certain `AffineExpr`s (#78855)
Currently, `simplifyMul()` asserts that either `lhs` or `rhs` is
symbolic or constant. This method is called by the overloaded `*`
operator for `AffineExpr`s which leads to a crash when building a
multiplication expression where neither operand is symbolic or constant.
This patch returns a `nullptr` from `simplifyMul()` to signal that the
expression could not be simplified instead.
Fix https://github.com/llvm/llvm-project/issues/75770
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
