mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
More bulletproofing of llvm.dbg.declare.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d2a6131da
commit
bf7637d590
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user