From 4d66e9973f9de26cb8483e59d8ed4dafa39d491c Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 16 Sep 2002 15:13:59 +0000 Subject: [PATCH] Add an assertion. llvm-svn: 3734 --- llvm/lib/CodeGen/MachineCodeForInstruction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp index f21e01651bef..615639922414 100644 --- a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp +++ b/llvm/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); }