From: Vikram S. Adve Date: Mon, 16 Sep 2002 15:13:59 +0000 (+0000) Subject: Add an assertion. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=87fbcd99b406a5154c65e4f8ac3712b6c3136d84;p=oota-llvm.git Add an assertion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp index f21e01651be..61563992241 100644 --- a/lib/CodeGen/MachineCodeForInstruction.cpp +++ b/lib/CodeGen/MachineCodeForInstruction.cpp @@ -38,6 +38,7 @@ static struct MCFIInitializer { MachineCodeForInstruction& MachineCodeForInstruction::get(const Instruction *I){ + assert(I != NULL); return *(MachineCodeForInstruction*)I->getOrCreateAnnotation(MCFI_AID); }