summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-18 00:37:35 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-18 00:37:35 +0000
commit3074d3cfe7b0a4c712dae696b09fe29ec93f18dc (patch)
treeccb978ec9006edde328e2b91aaa476f12f45236e /llvm/lib
parentef784f01dd5981b95c634c3d2cf1c64dfce0fcc4 (diff)
downloadbcm5719-llvm-3074d3cfe7b0a4c712dae696b09fe29ec93f18dc.tar.gz
bcm5719-llvm-3074d3cfe7b0a4c712dae696b09fe29ec93f18dc.zip
bug 122:
- Correct isa<Constant> for GlobalValue subclass llvm-svn: 14949
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp b/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
index fd8289675a2..1d72a7495b2 100644
--- a/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
+++ b/llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
@@ -17,7 +17,7 @@ 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() << ") ";
- else if (isa<Constant>(v))
+ else if (isa<Constant>(v) && !isa<GlobalValue>(v))
return O << (void*)&v << "(" << v << ") ";
else
return O << (void*)&v << " ";
OpenPOWER on IntegriCloud