diff options
| author | Christian Sigg <chsigg@users.noreply.github.com> | 2024-04-19 15:58:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 15:58:27 +0200 |
| commit | a5757c5b65f1894de16f549212b1c37793312703 (patch) | |
| tree | f4993dfc1218684abaa150123550e321f8131e50 /mlir/lib/Dialect/Complex/IR | |
| parent | ce2f6423f0168e945b6f29aa40a3054c1abe22a9 (diff) | |
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.
Diffstat (limited to 'mlir/lib/Dialect/Complex/IR')
| -rw-r--r-- | mlir/lib/Dialect/Complex/IR/ComplexOps.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp b/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp index 1c81433bc3e9..fb97045687d6 100644 --- a/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp +++ b/mlir/lib/Dialect/Complex/IR/ComplexOps.cpp @@ -378,7 +378,7 @@ OpFoldResult DivOp::fold(FoldAdaptor adaptor) { if (!rhs) return {}; - ArrayAttr arrayAttr = rhs.dyn_cast<ArrayAttr>(); + ArrayAttr arrayAttr = dyn_cast<ArrayAttr>(rhs); if (!arrayAttr || arrayAttr.size() != 2) return {}; |
