More bulletproofing of llvm.dbg.declare.

llvm-svn: 27224
This commit is contained in:
Jim Laskey 2006-03-28 13:45:20 +00:00
parent 457e54efc1
commit 67a636c587
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
case Intrinsic::dbg_declare: {
MachineDebugInfo *DebugInfo = DAG.getMachineDebugInfo();
DbgDeclareInst &DI = cast<DbgDeclareInst>(I);
if (DebugInfo && DebugInfo->Verify(DI.getVariable())) {
if (DebugInfo && DI.getVariable() && DebugInfo->Verify(DI.getVariable())) {
std::vector<SDOperand> Ops;
SDOperand AddressOp = getValue(DI.getAddress());