From ae9e9a63bdac6ead6882c1b94c48f308980f682f Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 8 Apr 2010 16:18:36 +0000 Subject: Clarify an assert. llvm-svn: 100776 --- clang/lib/CodeGen/CGVtable.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/CodeGen/CGVtable.cpp') diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index e23289a01ab..c157a5e4dd7 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -2544,6 +2544,9 @@ int64_t CodeGenVTables::getVirtualBaseOffsetOffset(const CXXRecordDecl *RD, uint64_t CodeGenVTables::getAddressPoint(BaseSubobject Base, const CXXRecordDecl *RD) { + assert(AddressPoints.count(std::make_pair(RD, Base)) && + "Did not find address point!"); + uint64_t AddressPoint = AddressPoints.lookup(std::make_pair(RD, Base)); assert(AddressPoint && "Address point must not be zero!"); -- cgit v1.2.3