Fix bug in previous checkin: Demorgan would be ashamed of me, I need to
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 17:51:53 +0000 (17:51 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 17:51:53 +0000 (17:51 +0000)
lay off the crack.

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

lib/VMCore/Constants.cpp

index bfac24fe9b96ab15ad817cbb55ce49480dab9001..e0daca5a66daa232f3254680fd90a30ed5ee2c28 100644 (file)
@@ -758,7 +758,7 @@ ConstantArray *ConstantArray::get(const std::string &Str) {
 /// 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