bug 122:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:37:35 +0000 (00:37 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 00:37:35 +0000 (00:37 +0000)
- Correct isa<Constant> for GlobalValue subclass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14949 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/LiveVar/ValueSet.cpp

index fd8289675a21290ddf8b2e54509a59834513b5e3..1d72a7495b24d3c8e045fca267be5a4f3b11a488 100644 (file)
@@ -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 << " ";