[llvm-branch-commits] [llvm-branch] r100579 - /llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp

Gabor Greif ggreif at gmail.com
Tue Apr 6 15:54:10 PDT 2010


Author: ggreif
Date: Tue Apr  6 17:54:10 2010
New Revision: 100579

URL: http://llvm.org/viewvc/llvm-project?rev=100579&view=rev
Log:
shift operands

Modified:
    llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp

Modified: llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp?rev=100579&r1=100578&r2=100579&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/VMCore/IntrinsicInst.cpp Tue Apr  6 17:54:10 2010
@@ -54,7 +54,7 @@
 ///
 
 Value *DbgDeclareInst::getAddress() const {
-  if (MDNode* MD = cast_or_null<MDNode>(getOperand(1)))
+  if (MDNode* MD = cast_or_null<MDNode>(getOperand(0)))
     return MD->getOperand(0);
   else
     return NULL;
@@ -65,9 +65,9 @@
 ///
 
 const Value *DbgValueInst::getValue() const {
-  return cast<MDNode>(getOperand(1))->getOperand(0);
+  return cast<MDNode>(getOperand(0))->getOperand(0);
 }
 
 Value *DbgValueInst::getValue() {
-  return cast<MDNode>(getOperand(1))->getOperand(0);
+  return cast<MDNode>(getOperand(0))->getOperand(0);
 }





More information about the llvm-branch-commits mailing list