X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FIntrinsicInst.cpp;h=ac8ec2086b18f58d42d204c4ac23f9faa020840d;hb=7ae0fbc2d072f87217d5302fcf0d91d2f3aa981f;hp=c37d5b03cdc801a0259f39e343ffa7b1d9aae780;hpb=53d00241fb553c26bfe6f6305f5f59f0d030238f;p=oota-llvm.git diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp index c37d5b03cdc..ac8ec2086b1 100644 --- a/lib/VMCore/IntrinsicInst.cpp +++ b/lib/VMCore/IntrinsicInst.cpp @@ -54,7 +54,7 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) { /// Value *DbgDeclareInst::getAddress() const { - if (MDNode* MD = cast_or_null(getOperand(1))) + if (MDNode* MD = cast_or_null(getArgOperand(0))) return MD->getOperand(0); else return NULL; @@ -65,9 +65,9 @@ Value *DbgDeclareInst::getAddress() const { /// const Value *DbgValueInst::getValue() const { - return cast(getOperand(1))->getOperand(0); + return cast(getArgOperand(0))->getOperand(0); } Value *DbgValueInst::getValue() { - return cast(getOperand(1))->getOperand(0); + return cast(getArgOperand(0))->getOperand(0); }