Move llvm/Support/IRBuilder.h -> llvm/IRBuilder.h
[oota-llvm.git] / lib / VMCore / IntrinsicInst.cpp
index 098d2326976cde4f0905fad4b3cd48e79f11ceab..ac8ec2086b18f58d42d204c4ac23f9faa020840d 100644 (file)
@@ -54,7 +54,7 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
 ///
 
 Value *DbgDeclareInst::getAddress() const {
-  if (MDNode* MD = cast_or_null<MDNode>(getOperand(0)))
+  if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
     return MD->getOperand(0);
   else
     return NULL;
@@ -65,9 +65,9 @@ Value *DbgDeclareInst::getAddress() const {
 ///
 
 const Value *DbgValueInst::getValue() const {
-  return cast<MDNode>(getOperand(0))->getOperand(0);
+  return cast<MDNode>(getArgOperand(0))->getOperand(0);
 }
 
 Value *DbgValueInst::getValue() {
-  return cast<MDNode>(getOperand(0))->getOperand(0);
+  return cast<MDNode>(getArgOperand(0))->getOperand(0);
 }