X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FIntrinsicInst.cpp;h=ac8ec2086b18f58d42d204c4ac23f9faa020840d;hb=34786a3ad760b9901912f70a8a17fd85e0643f21;hp=098d2326976cde4f0905fad4b3cd48e79f11ceab;hpb=165dac08d1bb8428b32a5f39cdd3dbee2888987f;p=oota-llvm.git diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp index 098d2326976..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(0))) + 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(0))->getOperand(0); + return cast(getArgOperand(0))->getOperand(0); } Value *DbgValueInst::getValue() { - return cast(getOperand(0))->getOperand(0); + return cast(getArgOperand(0))->getOperand(0); }