From ffed163be5e1e6304f738da90c6047c393e38565 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Feb 2009 19:27:54 +0000 Subject: [PATCH] add assertion git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64652 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDecl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 444f85e773..de438c3394 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -2820,6 +2820,7 @@ Sema::DeclTy *Sema::ActOnFinishFunctionBody(DeclTy *D, StmtArg BodyArg) { FD->setBody(Body); assert(FD == getCurFunctionDecl() && "Function parsing confused"); } else if (ObjCMethodDecl *MD = dyn_cast_or_null(dcl)) { + assert(MD == getCurMethodDecl() && "Method parsing confused"); MD->setBody((Stmt*)Body); } else { Body->Destroy(Context); -- 2.40.0