diff options
| author | Jim Laskey <jlaskey@mac.com> | 2006-03-28 13:45:20 +0000 |
|---|---|---|
| committer | Jim Laskey <jlaskey@mac.com> | 2006-03-28 13:45:20 +0000 |
| commit | 67a636c587c3a9907c0f2dd204f7358f036d5605 (patch) | |
| tree | b28962d00d589addee1cd84a763e3dee1fac4087 /llvm/lib/CodeGen | |
| parent | 457e54efc154321cb707791cf1dab276d0ce7a18 (diff) | |
| download | bcm5719-llvm-67a636c587c3a9907c0f2dd204f7358f036d5605.tar.gz bcm5719-llvm-67a636c587c3a9907c0f2dd204f7358f036d5605.zip | |
More bulletproofing of llvm.dbg.declare.
llvm-svn: 27224
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d404d15ff7b..3c633266bf9 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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<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()); |

