Rename for truth in advertising.
authorJim Laskey <jlaskey@mac.com>
Fri, 24 Mar 2006 09:50:27 +0000 (09:50 +0000)
committerJim Laskey <jlaskey@mac.com>
Fri, 24 Mar 2006 09:50:27 +0000 (09:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27063 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IntrinsicInst.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index da1bc4ddce632fc26921771588b88130b8643d5f..b82fa02370ccadac72919c37ee170f8b45b1a08d 100644 (file)
@@ -163,7 +163,7 @@ namespace llvm {
   /// DbgDeclareInst - This represents the llvm.dbg.declare instruction.
   ///
   struct DbgDeclareInst : public DbgInfoIntrinsic {
-    Value *getAllocA() const { return StripCast(getOperand(1)); }
+    Value *getAddress()  const { return StripCast(getOperand(1)); }
     Value *getVariable() const { return StripCast(getOperand(2)); }
 
     // Methods for support type inquiry through isa, cast, and dyn_cast:
index 30871dd4e114091c2ab4239118f96294f57a1f01..d0003fd0ee3836dbbc4b55a30fc4f3ca33b1de75 100644 (file)
@@ -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());
       }
     }