summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-16 21:36:29 +0000
committerChris Lattner <sabre@nondot.org>2002-04-16 21:36:29 +0000
commit25bf874ff536210362712f9c807f566837571675 (patch)
tree2de3674adb5177028802add97ca06e4247358aa0 /llvm/lib
parentd84bb63750d6c6d6d6b71522a833b0d15cd7ff0f (diff)
downloadbcm5719-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.cpp2
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) {
OpenPOWER on IntegriCloud