[cfe-commits] r96211 - /cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sun Feb 14 20:28:38 PST 2010
Author: zhongxingxu
Date: Sun Feb 14 22:28:35 2010
New Revision: 96211
URL: http://llvm.org/viewvc/llvm-project?rev=96211&view=rev
Log:
Simplify code. If we can reach here, the base must be virtual.
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=96211&r1=96210&r2=96211&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Sun Feb 14 22:28:35 2010
@@ -119,11 +119,10 @@
return;
}
}
- if (i->isVirtual()) {
- SelectPrimaryVBase(Base, FirstPrimary);
- if (PrimaryBase.getBase())
- return;
- }
+ assert(i->isVirtual());
+ SelectPrimaryVBase(Base, FirstPrimary);
+ if (PrimaryBase.getBase())
+ return;
}
}
More information about the cfe-commits
mailing list