Author: Erich Keane Date: 2023-03-21T08:52:15-07:00 New Revision: 67852bff588285b2dcf1eaa0c42389d297430465
URL: https://github.com/llvm/llvm-project/commit/67852bff588285b2dcf1eaa0c42389d297430465 DIFF: https://github.com/llvm/llvm-project/commit/67852bff588285b2dcf1eaa0c42389d297430465.diff LOG: Fix switch warning from 514e4359a Added: Modified: clang/lib/Sema/TreeTransform.h Removed: ################################################################################ diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h index 6dacd74a99e3..8ba8648f17c9 100644 --- a/clang/lib/Sema/TreeTransform.h +++ b/clang/lib/Sema/TreeTransform.h @@ -7577,9 +7577,8 @@ const Attr *TreeTransform<Derived>::TransformAttr(const Attr *R) { case attr::X: \ return getDerived().Transform##X##Attr(cast<X##Attr>(R)); #include "clang/Basic/AttrList.inc" - default: - return R; } + return R; } template <typename Derived> @@ -7595,8 +7594,6 @@ const Attr *TreeTransform<Derived>::TransformStmtAttr(const Stmt *OrigS, case attr::X: \ return getDerived().TransformStmt##X##Attr(OrigS, InstS, cast<X##Attr>(R)); #include "clang/Basic/AttrList.inc" - default: - return R; } return TransformAttr(R); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits