[Mlir-commits] [llvm] [mlir] [mlir] Mark `isa/dyn_cast/cast/...` member functions deprecated. (PR #90413)

Christian Sigg llvmlistbot at llvm.org
Thu May 2 03:31:26 PDT 2024


chsigg wrote:





> It seems this PR causes build failure on LoP (Linux On Power) as
> 
> ```
> llvm-project/flang/lib/Optimizer/Transforms/AddDebugInfo.cpp:148:26: error: 'dyn_cast' is deprecated: Use mlir::dyn_cast<U>() instead [-Werror,-Wdeprecated-declarations]
>     if (auto funcLoc = l.dyn_cast<mlir::FileLineColLoc>())
>                          ^
> ```
> 
> There are also quite a lot `warning` on top of the failures. @chsigg

Sorry about that, not sure how I missed these. Hopefully they are now fixed with https://github.com/llvm/llvm-project/commit/52cb9537896992e0fa689c45469bccb36970c0c7?

Thank you very much [kazutakahirata](https://github.com/kazutakahirata) and [PeimingLiu](https://github.com/PeimingLiu) for jumping in!

https://github.com/llvm/llvm-project/pull/90413


More information about the Mlir-commits mailing list