[llvm-commits] [llvm] r106563 - /llvm/trunk/lib/VMCore/IntrinsicInst.cpp
Gabor Greif
ggreif at gmail.com
Tue Jun 22 12:46:37 PDT 2010
Author: ggreif
Date: Tue Jun 22 14:46:37 2010
New Revision: 106563
URL: http://llvm.org/viewvc/llvm-project?rev=106563&view=rev
Log:
warmup ritual: use high-level argument accessors
Modified:
llvm/trunk/lib/VMCore/IntrinsicInst.cpp
Modified: llvm/trunk/lib/VMCore/IntrinsicInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/IntrinsicInst.cpp?rev=106563&r1=106562&r2=106563&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/IntrinsicInst.cpp (original)
+++ llvm/trunk/lib/VMCore/IntrinsicInst.cpp Tue Jun 22 14:46:37 2010
@@ -54,7 +54,7 @@
///
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 @@
///
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);
}
More information about the llvm-commits
mailing list