diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:37:35 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:37:35 +0000 |
commit | 2786542aad27f4456e551cd4ee744be6b6ae41ba (patch) | |
tree | 35770b40cd9e09c18b593c967baaeb0b911e2938 | |
parent | 460f16c6253928519689e882a4dbb7f236f33294 (diff) |
bug 122:
- Correct isa<Constant> for GlobalValue subclass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14949 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/SparcV9/LiveVar/ValueSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/LiveVar/ValueSet.cpp b/lib/Target/SparcV9/LiveVar/ValueSet.cpp index fd8289675a..1d72a7495b 100644 --- a/lib/Target/SparcV9/LiveVar/ValueSet.cpp +++ b/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 << " "; |