aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/LiveVar/ValueSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/SparcV9/LiveVar/ValueSet.cpp')
-rw-r--r--lib/Target/SparcV9/LiveVar/ValueSet.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/SparcV9/LiveVar/ValueSet.cpp b/lib/Target/SparcV9/LiveVar/ValueSet.cpp
index 82fccb7e84..1914f03302 100644
--- a/lib/Target/SparcV9/LiveVar/ValueSet.cpp
+++ b/lib/Target/SparcV9/LiveVar/ValueSet.cpp
@@ -6,13 +6,13 @@
#include <iostream>
std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value
- const Value *v = V.V;
- if (v->hasName())
- return O << (void*)v << "(" << v->getName() << ") ";
+ const Value &v = V.V;
+ if (v.hasName())
+ return O << (void*)&v << "(" << v.getName() << ") ";
else if (isa<Constant>(v))
- return O << (void*)v << "(" << v << ") ";
+ return O << (void*)&v << "(" << v << ") ";
else
- return O << (void*)v << " ";
+ return O << (void*)&v << " ";
}
void printSet(const ValueSet &S) {