]> granicus.if.org Git - clang/commitdiff
Clarify an assertion.
authorAnders Carlsson <andersca@mac.com>
Sun, 11 Apr 2010 20:23:06 +0000 (20:23 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 11 Apr 2010 20:23:06 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100986 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVTT.cpp

index 91d9f763bfe73b1a85abeba3754c625ea3d9d536..68bb655fcf005c47df7f8d37aad0a250ed25fdaa 100644 (file)
@@ -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),