diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-16 21:36:29 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-16 21:36:29 +0000 |
| commit | 25bf874ff536210362712f9c807f566837571675 (patch) | |
| tree | 2de3674adb5177028802add97ca06e4247358aa0 /llvm/lib | |
| parent | d84bb63750d6c6d6d6b71522a833b0d15cd7ff0f (diff) | |
| download | bcm5719-llvm-25bf874ff536210362712f9c807f566837571675.tar.gz bcm5719-llvm-25bf874ff536210362712f9c807f566837571675.zip | |
Remove unneccesary cast
llvm-svn: 2269
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index f3f3f49bf63..b2335bc9444 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -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) { |

