[cfe-commits] r64652 - /cfe/trunk/lib/Sema/SemaDecl.cpp

Chris Lattner sabre at nondot.org
Mon Feb 16 11:27:54 PST 2009


Author: lattner
Date: Mon Feb 16 13:27:54 2009
New Revision: 64652

URL: http://llvm.org/viewvc/llvm-project?rev=64652&view=rev
Log:
add assertion

Modified:
    cfe/trunk/lib/Sema/SemaDecl.cpp

Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=64652&r1=64651&r2=64652&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Mon Feb 16 13:27:54 2009
@@ -2820,6 +2820,7 @@
     FD->setBody(Body);
     assert(FD == getCurFunctionDecl() && "Function parsing confused");
   } else if (ObjCMethodDecl *MD = dyn_cast_or_null<ObjCMethodDecl>(dcl)) {
+    assert(MD == getCurMethodDecl() && "Method parsing confused");
     MD->setBody((Stmt*)Body);
   } else {
     Body->Destroy(Context);





More information about the cfe-commits mailing list