Author: d0k
Date: Sat Feb  6 03:59:24 2010
New Revision: 95494

URL: http://llvm.org/viewvc/llvm-project?rev=95494&view=rev
Log:
Silence GCC warning and stay in 80 cols.

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=95494&r1=95493&r2=95494&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sat Feb  6 03:59:24 2010
@@ -5006,10 +5006,11 @@
     const CXXMethodDecl *KeyFunction = S.Context.getKeyFunction(Record);
   
     if (!KeyFunction)
-      S.ClassesWithUnmarkedVirtualMembers.push_back(std::make_pair(Record, 
Loc));
-  
-    if ((!KeyFunction || KeyFunction->getBody() && KeyFunction->isInlined()) 
&& 
-        Record->getLinkage() == ExternalLinkage)
+      S.ClassesWithUnmarkedVirtualMembers.push_back(std::make_pair(Record,
+                                                                   Loc));
+
+    if ((!KeyFunction || (KeyFunction->getBody() && KeyFunction->isInlined()))
+        && Record->getLinkage() == ExternalLinkage)
       S.Diag(Record->getLocation(), diag::warn_weak_vtable) << Record;
   }
   for (DeclContext::decl_iterator D = Record->decls_begin(), 


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to