bug 122:
- Correct isa<Constant> for GlobalValue subclass
llvm-svn: 14949
diff --git a/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp b/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
index fd82896..1d72a74 100644
--- a/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
+++ b/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
@@ -17,7 +17,7 @@
const Value &v = V.V;
if (v.hasName())
return O << (void*)&v << "(" << v.getName() << ") ";
- else if (isa<Constant>(v))
+ else if (isa<Constant>(v) && !isa<GlobalValue>(v))
return O << (void*)&v << "(" << v << ") ";
else
return O << (void*)&v << " ";