aboutsummaryrefslogtreecommitdiff
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
commit7aa162b29b374ed112431e93e8630beb27c5429a (patch)
tree9069b7dbd98e650b1186d49c389d70c2939d445b
parent07ad64231f76bf78ab2887235f3656dc40ff98d8 (diff)
Fix bug in previous checkin: Demorgan would be ashamed of me, I need to
lay off the crack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10855 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index bfac24fe9b..e0daca5a66 100644
--- a/lib/VMCore/Constants.cpp
+++ b/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