[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

Jason Rice via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 2 15:01:15 PST 2025


================
@@ -755,7 +755,7 @@ bool Sema::checkMustTailAttr(const Stmt *St, const Attr &MTA) {
     return true;
   };
 
-  const auto *CallerDecl = dyn_cast<FunctionDecl>(CurContext);
+  const auto *CallerDecl = getCurFunctionDecl();
----------------
ricejasonf wrote:

Stuff like this is from the implicit template region stuffs. There is another one like that that will likely fix that attr-tail.m test that was failing.

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


More information about the cfe-commits mailing list