diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-06-22 19:46:37 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-06-22 19:46:37 +0000 |
commit | 07f639fca4d9f6b6c2ccb40f17d33cae3b3d6771 (patch) | |
tree | 2c151bf3c97a0d92728812b08e94070c461c9ffe /lib/VMCore | |
parent | 23a8fc6e48c5dbb0f46d9eaf6445fd33ca1e11e5 (diff) | |
download | external_llvm-07f639fca4d9f6b6c2ccb40f17d33cae3b3d6771.zip external_llvm-07f639fca4d9f6b6c2ccb40f17d33cae3b3d6771.tar.gz external_llvm-07f639fca4d9f6b6c2ccb40f17d33cae3b3d6771.tar.bz2 |
warmup ritual: use high-level argument accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/IntrinsicInst.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp index c37d5b0..ac8ec20 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<MDNode>(getOperand(1))) + 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(1))->getOperand(0); + return cast<MDNode>(getArgOperand(0))->getOperand(0); } Value *DbgValueInst::getValue() { - return cast<MDNode>(getOperand(1))->getOperand(0); + return cast<MDNode>(getArgOperand(0))->getOperand(0); } |