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

John McCall rjmccall at apple.com
Thu May 20 00:13:26 PDT 2010


Author: rjmccall
Date: Thu May 20 02:13:26 2010
New Revision: 104218

URL: http://llvm.org/viewvc/llvm-project?rev=104218&view=rev
Log:
Whoops.


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=104218&r1=104217&r2=104218&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu May 20 02:13:26 2010
@@ -4694,7 +4694,7 @@
     // Verify that that gotos and switch cases don't jump into scopes illegally.
     // Verify that that gotos and switch cases don't jump into scopes illegally.
     if (FunctionNeedsScopeChecking() &&
-        !FD->isInvalidDecl() &&
+        !dcl->isInvalidDecl() &&
         !hasAnyErrorsInThisFunction())
       DiagnoseInvalidJumps(Body);
 





More information about the cfe-commits mailing list