summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commitd2408f78a5c38a95c3a494e4e5d4944eeb57765e (patch)
treeaa722c3842fd5246980f8e9d81913f441409028f /clang/lib/CodeGen
parent5454e0633e452b75535cff3bffe24ff08545af3e (diff)
downloadbcm5719-llvm-d2408f78a5c38a95c3a494e4e5d4944eeb57765e.tar.gz
bcm5719-llvm-d2408f78a5c38a95c3a494e4e5d4944eeb57765e.zip
silence warning in a cleaner way
llvm-svn: 96520
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index f5bd33e548f..fbe47424555 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud