aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-27 19:51:04 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-27 19:51:04 +0000
commitf89bb6ceeb3045757394ab57a542a566e3eae3d4 (patch)
treea50ddfc1d4531c37ffff7ec436f0bce27519d5e8 /lib/CodeGen/CGVtable.cpp
parent6a8c5b2bc266902a3d1138122ef25cbe10e1687b (diff)
Make sure to insert the primary base in the set :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index b7f8fe77ea..d5d22154d9 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -1512,6 +1512,9 @@ VtableBuilder::IsOverriderUsed(BaseSubobject Base,
"Primary base should always be at offset 0!");
}
+ if (!PrimaryBases.insert(PrimaryBase))
+ assert(false && "Found a duplicate primary base!");
+
RD = PrimaryBase;
}