Rename for truth in advertising.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27063 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@
     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());
       }
     }