Clarify an assert.

llvm-svn: 100776
This commit is contained in:
Anders Carlsson 2010-04-08 16:18:36 +00:00
parent bc6a434773
commit ae9e9a63bd
1 changed files with 3 additions and 0 deletions

View 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!");