[all-commits] [llvm/llvm-project] baa291: [mlir][mesh] Add null check for dyn_cast to preven...
Longsheng Mou via All-commits
all-commits at lists.llvm.org
Thu Jul 17 18:28:51 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: baa291bfb58e73a253669b86ac604cf8e6792b6c
https://github.com/llvm/llvm-project/commit/baa291bfb58e73a253669b86ac604cf8e6792b6c
Author: Longsheng Mou <longshengmou at gmail.com>
Date: 2025-07-18 (Fri, 18 Jul 2025)
Changed paths:
M mlir/include/mlir/Dialect/Mesh/Transforms/Simplifications.h
M mlir/test/Dialect/Mesh/simplifications.mlir
Log Message:
-----------
[mlir][mesh] Add null check for dyn_cast to prevent crash (#149266)
This PR adds a null check for dyn_cast result before use to prevent
crash, and use `isa` instead `dyn_cast` to make code clean. Fixes
#148619.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list