[cfe-commits] r95494 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Feb 6 01:59:25 PST 2010
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(),
More information about the cfe-commits
mailing list