mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Remove unneccesary cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a716added
commit
a3b63668d4
@ -194,7 +194,7 @@ std::string ConstantArray::getStrValue() const {
|
||||
// As a special case, print the array as a string if it is an array of
|
||||
// ubytes or an array of sbytes with positive values.
|
||||
//
|
||||
const Type *ETy = cast<ArrayType>(getType())->getElementType();
|
||||
const Type *ETy = getType()->getElementType();
|
||||
bool isString = (ETy == Type::SByteTy || ETy == Type::UByteTy);
|
||||
|
||||
if (ETy == Type::SByteTy) {
|
||||
|
Loading…
Reference in New Issue
Block a user