From: Jim Laskey Date: Tue, 28 Mar 2006 13:45:20 +0000 (+0000) Subject: More bulletproofing of llvm.dbg.declare. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf7637d59028a5d9911769810f537c499e23bb8e;p=oota-llvm.git More bulletproofing of llvm.dbg.declare. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27224 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d404d15ff7b..3c633266bf9 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1390,7 +1390,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { case Intrinsic::dbg_declare: { MachineDebugInfo *DebugInfo = DAG.getMachineDebugInfo(); DbgDeclareInst &DI = cast(I); - if (DebugInfo && DebugInfo->Verify(DI.getVariable())) { + if (DebugInfo && DI.getVariable() && DebugInfo->Verify(DI.getVariable())) { std::vector Ops; SDOperand AddressOp = getValue(DI.getAddress());