[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)
Shilei Tian via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 09:08:46 PDT 2025
================
@@ -610,7 +610,7 @@ void StmtPrinter::VisitObjCAtTryStmt(ObjCAtTryStmt *Node) {
}
}
- if (auto *FS = static_cast<ObjCAtFinallyStmt *>(Node->getFinallyStmt())) {
+ if (auto *FS = Node->getFinallyStmt()) {
----------------
shiltian wrote:
If there is no cast, then we'd want to use the type instead of `auto` here.
https://github.com/llvm/llvm-project/pull/149338
More information about the cfe-commits
mailing list