aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-09-16 15:13:59 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-09-16 15:13:59 +0000
commit87fbcd99b406a5154c65e4f8ac3712b6c3136d84 (patch)
tree9ae5d5f4b0b7a91d1e890a26bc9721a580a4b01a /lib/CodeGen
parent6641995564bd49562b0699c73b5e299a16d7f906 (diff)
downloadexternal_llvm-87fbcd99b406a5154c65e4f8ac3712b6c3136d84.zip
external_llvm-87fbcd99b406a5154c65e4f8ac3712b6c3136d84.tar.gz
external_llvm-87fbcd99b406a5154c65e4f8ac3712b6c3136d84.tar.bz2
Add an assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineCodeForInstruction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp
index f21e016..6156399 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);
}