summaryrefslogtreecommitdiff
path: root/lib/VMCore/IntrinsicInst.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-04-15 12:46:56 +0000
committerGabor Greif <ggreif@gmail.com>2010-04-15 12:46:56 +0000
commit9ee17208115482441953127615231c59a2f4d052 (patch)
treefea1c2465e14ae8c3d89e0cf07588155acf8a23d /lib/VMCore/IntrinsicInst.cpp
parent45d95a1ad5eb72c65db8cc691a10339aa7c9c024 (diff)
downloadllvm-9ee17208115482441953127615231c59a2f4d052.tar.gz
llvm-9ee17208115482441953127615231c59a2f4d052.tar.bz2
llvm-9ee17208115482441953127615231c59a2f4d052.tar.xz
back out r101364, as it trips the linux nightlybot on some clang C++ tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/IntrinsicInst.cpp')
-rw-r--r--lib/VMCore/IntrinsicInst.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/IntrinsicInst.cpp b/lib/VMCore/IntrinsicInst.cpp
index 098d232697..c37d5b03cd 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(0)))
+ if (MDNode* MD = cast_or_null<MDNode>(getOperand(1)))
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>(getOperand(1))->getOperand(0);
}
Value *DbgValueInst::getValue() {
- return cast<MDNode>(getOperand(0))->getOperand(0);
+ return cast<MDNode>(getOperand(1))->getOperand(0);
}