aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 21:42:34 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 21:42:34 +0000
commit04a2311982d34269f84362a02a7a76a3e47675bc (patch)
tree0d20bcd52c69c51b7cdad1c9d128e90be0b3bf87 /lib/CodeGen/CGVtable.cpp
parent8264558a81563651b0d9377d316eb65a5ce82259 (diff)
silence warning in a cleaner way
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index f5bd33e548..fbe4742455 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -1205,8 +1205,7 @@ void VtableBuilder::LayoutVtable() {
void VtableBuilder::LayoutPrimaryAndAndSecondaryVtables(BaseSubobject Base,
bool BaseIsVirtual) {
- const CXXRecordDecl *RD ATTRIBUTE_UNUSED = Base.getBase();
- assert(RD->isDynamicClass() && "class does not have a vtable!");
+ assert(Base.getBase()->isDynamicClass() && "class does not have a vtable!");
// Add vcall and vbase offsets for this vtable.
VisitedVirtualBasesSetTy VBases;