[clang] [AST] Remove an unnecessary cast (NFC) (PR #149338)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 17 13:16:40 PDT 2025


================
@@ -610,7 +610,7 @@ void StmtPrinter::VisitObjCAtTryStmt(ObjCAtTryStmt *Node) {
     }
   }
 
-  if (auto *FS = static_cast<ObjCAtFinallyStmt *>(Node->getFinallyStmt())) {
+  if (auto *FS = Node->getFinallyStmt()) {
----------------
kazutakahirata wrote:

Fixed in the latest revision.  Thanks!

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


More information about the cfe-commits mailing list