r192495 - Fix unused variable warning in MS record layout.
Reid Kleckner
reid at kleckner.net
Fri Oct 11 13:41:08 PDT 2013
Author: rnk
Date: Fri Oct 11 15:41:08 2013
New Revision: 192495
URL: http://llvm.org/viewvc/llvm-project?rev=192495&view=rev
Log:
Fix unused variable warning in MS record layout.
Modified:
cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=192495&r1=192494&r2=192495&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Fri Oct 11 15:41:08 2013
@@ -1079,10 +1079,8 @@ RecordLayoutBuilder::LayoutNonVirtualBas
cast<CXXRecordDecl>(I->getType()->castAs<RecordType>()->getDecl());
// Remember if this base has virtual bases itself.
- if (BaseDecl->getNumVBases()) {
- const ASTRecordLayout &Layout = Context.getASTRecordLayout(BaseDecl);
+ if (BaseDecl->getNumVBases())
HasNonVirtualBaseWithVBTable = true;
- }
// Skip the primary base, because we've already laid it out. The
// !PrimaryBaseIsVirtual check is required because we might have a
More information about the cfe-commits
mailing list