]> granicus.if.org Git - clang/commitdiff
Clarify an assert.
authorAnders Carlsson <andersca@mac.com>
Thu, 8 Apr 2010 16:18:36 +0000 (16:18 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 8 Apr 2010 16:18:36 +0000 (16:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100776 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index e23289a01ab08617d32c990b7bdc3795180baf06..c157a5e4dd770973ae1bc1a1edc4c77f3cb1d64b 100644 (file)
@@ -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!");