summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-04-11 20:23:06 +0000
committerAnders Carlsson <andersca@mac.com>2010-04-11 20:23:06 +0000
commitde0338abac08fb19fa13f8249f81165eeac49d97 (patch)
tree62d3df9ef16cde216839cba8d9e355430dbc6c77 /clang/lib/CodeGen
parent343a26b56dfef51cbd16561220a5c307a43e23db (diff)
downloadbcm5719-llvm-de0338abac08fb19fa13f8249f81165eeac49d97.tar.gz
bcm5719-llvm-de0338abac08fb19fa13f8249f81165eeac49d97.zip
Clarify an assertion.
llvm-svn: 100986
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVTT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index 91d9f763bfe..68bb655fcf0 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/lib/CodeGen/CGVTT.cpp
@@ -179,13 +179,14 @@ void VTTBuilder::AddVTablePointer(BaseSubobject Base, llvm::Constant *VTable,
// The vtable is a construction vtable, look in the construction vtable
// address points.
AddressPoint = AddressPoints.lookup(Base);
+ assert(AddressPoint != 0 && "Did not find ctor vtable address point!");
} else {
// Just get the address point for the regular vtable.
AddressPoint = CGM.getVTables().getAddressPoint(Base, VTableClass);
+ assert(AddressPoint != 0 && "Did not find vtable address point!");
}
if (!AddressPoint) AddressPoint = 0;
- assert(AddressPoint != 0 && "Did not find an address point!");
llvm::Value *Idxs[] = {
llvm::ConstantInt::get(llvm::Type::getInt64Ty(CGM.getLLVMContext()), 0),
OpenPOWER on IntegriCloud