[mlir][affine] Fix a crash when cast incompatible type (#145162)

This PR fixes a crash in `getSemiAffineExprFromFlatForm` when localExpr
is not `AffineBinaryOpExpr`. Fixes #144091.

GitOrigin-RevId: b00ddce731c65d0924e49bd2f81436e3077aeab2
2 files changed
tree: 18d7c10b20ca81ea4a609059c182ba33b1468765
  1. benchmark/
  2. cmake/
  3. docs/
  4. examples/
  5. include/
  6. lib/
  7. python/
  8. test/
  9. tools/
  10. unittests/
  11. utils/
  12. .clang-format
  13. .clang-tidy
  14. CMakeLists.txt
  15. LICENSE.TXT
  16. README.md
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.