From f89bb6ceeb3045757394ab57a542a566e3eae3d4 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 27 Feb 2010 19:51:04 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGVtable.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.40.0