summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-14 17:51:53 +0000
committerChris Lattner <sabre@nondot.org>2004-01-14 17:51:53 +0000
commite8701f690ffbd20f1cad2c4b1f703f488663dc4a (patch)
treeef0149c2cba1a89a058ed40456bb3addab2c3bf3
parent93cd755c05c3a56da03e54567a0531deb6263740 (diff)
downloadbcm5719-llvm-e8701f690ffbd20f1cad2c4b1f703f488663dc4a.tar.gz
bcm5719-llvm-e8701f690ffbd20f1cad2c4b1f703f488663dc4a.zip
Fix bug in previous checkin: Demorgan would be ashamed of me, I need to
lay off the crack. llvm-svn: 10855
-rw-r--r--llvm/lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index bfac24fe9b9..e0daca5a66d 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/lib/VMCore/Constants.cpp
@@ -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
OpenPOWER on IntegriCloud