From 973f46790fada0c949a887e0fcef3aeeb3a13430 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Fri, 29 Jan 2010 21:21:28 +0000 Subject: [PATCH] Add assertion to humor the paranoid. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94843 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FastISel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index 94dec7ce355..d466ce0d4fb 100644 --- a/lib/Target/X86/X86FastISel.cpp +++ b/lib/Target/X86/X86FastISel.cpp @@ -1156,6 +1156,7 @@ bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) { case Intrinsic::dbg_declare: { DbgDeclareInst *DI = cast(&I); X86AddressMode AM; + assert(DI->getAddress() && "Null address should be checked earlier!"); if (!X86SelectAddress(DI->getAddress(), AM)) return false; const TargetInstrDesc &II = TII.get(TargetInstrInfo::DEBUG_VALUE);