[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 14 11:53:03 PST 2004


Changes in directory llvm/lib/VMCore:

Constants.cpp updated: 1.70 -> 1.71

---
Log message:

Fix bug in previous checkin:  Demorgan would be ashamed of me, I need to
lay off the crack.


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

Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.70 llvm/lib/VMCore/Constants.cpp:1.71
--- llvm/lib/VMCore/Constants.cpp:1.70	Wed Jan 14 11:06:38 2004
+++ llvm/lib/VMCore/Constants.cpp	Wed Jan 14 11:51:53 2004
@@ -758,7 +758,7 @@
 /// ubyte, and if the elements of the array are all ConstantInt's.
 bool ConstantArray::isString() const {
   // Check the element type for sbyte or ubyte...
-  if (getType()->getElementType() != Type::UByteTy ||
+  if (getType()->getElementType() != Type::UByteTy &&
       getType()->getElementType() != Type::SByteTy)
     return false;
   // Check the elements to make sure they are all integers, not constant





More information about the llvm-commits mailing list