[llvm-commits] CVS: llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 17 17:37:45 PDT 2004



Changes in directory llvm/lib/Target/SparcV9/LiveVar:

ValueSet.cpp updated: 1.16 -> 1.17

---
Log message:

bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Correct isa<Constant> for GlobalValue subclass


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp
diff -u llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp:1.16 llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp:1.17
--- llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp:1.16	Tue Nov 11 16:41:32 2003
+++ llvm/lib/Target/SparcV9/LiveVar/ValueSet.cpp	Sat Jul 17 19:37:35 2004
@@ -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 << " ";





More information about the llvm-commits mailing list