Respond to Chris' review:
[oota-llvm.git] / lib / VMCore / IntrinsicInst.cpp
index daa768c0cfe598b9e55bb44d6235171b0c2a12ea..cb9252efdf5881bab570f120c1f9573ca849d159 100644 (file)
@@ -54,6 +54,10 @@ Value *DbgInfoIntrinsic::StripCast(Value *C) {
 /// DbgValueInst - This represents the llvm.dbg.value instruction.
 ///
 
-Value *DbgValueInst::getValue() const {
+const Value *DbgValueInst::getValue() const {
+  return cast<MDNode>(getOperand(1))->getOperand(0);
+}
+
+Value *DbgValueInst::getValue() {
   return cast<MDNode>(getOperand(1))->getOperand(0);
 }