Add an assertion.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 16 Sep 2002 15:13:59 +0000 (15:13 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 16 Sep 2002 15:13:59 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineCodeForInstruction.cpp

index f21e01651beff6449f79ebf3c40e7c959eb68169..6156399224148ab5d64e5e88f558927a4176655b 100644 (file)
@@ -38,6 +38,7 @@ static struct MCFIInitializer {
 
 MachineCodeForInstruction&
 MachineCodeForInstruction::get(const Instruction *I){
+  assert(I != NULL);
   return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID);
 }