diff options
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 30871dd..d0003fd 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1187,8 +1187,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { if (DebugInfo && DebugInfo->Verify(DI.getVariable())) { std::vector<SDOperand> Ops; - SDOperand AllocaOp = getValue(I.getOperand(1)); - if (FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(AllocaOp)) { + SDOperand AddressOp = getValue(DI.getAddress()); + if (FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(AddressOp)) { DebugInfo->RecordVariable(DI.getVariable(), FI->getIndex()); } } |