summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeForInstruction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineCodeForInstruction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineCodeForInstruction.cpp b/llvm/lib/CodeGen/MachineCodeForInstruction.cpp
index f21e01651be..61563992241 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);
}
OpenPOWER on IntegriCloud