mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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
This commit is contained in:
@@ -758,7 +758,7 @@ ConstantArray *ConstantArray::get(const std::string &Str) {
|
|||||||
/// ubyte, and if the elements of the array are all ConstantInt's.
|
/// ubyte, and if the elements of the array are all ConstantInt's.
|
||||||
bool ConstantArray::isString() const {
|
bool ConstantArray::isString() const {
|
||||||
// Check the element type for sbyte or ubyte...
|
// Check the element type for sbyte or ubyte...
|
||||||
if (getType()->getElementType() != Type::UByteTy ||
|
if (getType()->getElementType() != Type::UByteTy &&
|
||||||
getType()->getElementType() != Type::SByteTy)
|
getType()->getElementType() != Type::SByteTy)
|
||||||
return false;
|
return false;
|
||||||
// Check the elements to make sure they are all integers, not constant
|
// Check the elements to make sure they are all integers, not constant
|
||||||
|
Reference in New Issue
Block a user