summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-04-08 16:18:36 +0000
committerAnders Carlsson <andersca@mac.com>2010-04-08 16:18:36 +0000
commitae9e9a63bdac6ead6882c1b94c48f308980f682f (patch)
tree04a214651586601beac6a3b48c45dd277b9f3b0d /clang/lib/CodeGen
parentbc6a4347737239a4eb0d71a0e34af25e0d471318 (diff)
downloadbcm5719-llvm-ae9e9a63bdac6ead6882c1b94c48f308980f682f.tar.gz
bcm5719-llvm-ae9e9a63bdac6ead6882c1b94c48f308980f682f.zip
Clarify an assert.
llvm-svn: 100776
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp3
1 files changed, 3 insertions, 0 deletions
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!");
OpenPOWER on IntegriCloud