Add assertion to humor the paranoid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2010-01-29 21:21:28 +00:00
parent 2c482f4895
commit 973f46790f

View File

@ -1156,6 +1156,7 @@ bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) {
case Intrinsic::dbg_declare: {
DbgDeclareInst *DI = cast<DbgDeclareInst>(&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);