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

Daniel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu May 2 07:02:26 PDT 2024


DanielCChen 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 [52cb953](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!

Yes. All the errors and warnings are fixed. Thanks!

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


More information about the llvm-commits mailing list