mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Switch member calls to isa/dyn_cast/cast/... to free function calls. (#89356)
This change cleans up call sites. Next step is to mark the member functions deprecated. See https://mlir.llvm.org/deprecation and https://discourse.llvm.org/t/preferred-casting-style-going-forward.
This commit is contained in:
@@ -1154,7 +1154,7 @@ LogicalResult OpTrait::impl::verifySameOperandsAndResultRank(Operation *op) {
|
||||
|
||||
// delegate function that returns rank of shaped type with known rank
|
||||
auto getRank = [](const Type type) {
|
||||
return type.cast<ShapedType>().getRank();
|
||||
return cast<ShapedType>(type).getRank();
|
||||
};
|
||||
|
||||
auto rank = !rankedOperandTypes.empty() ? getRank(*rankedOperandTypes.begin())
|
||||
|
||||
Reference in New Issue
Block a user