projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a716ad
)
Remove unneccesary cast
author
Chris Lattner
<sabre@nondot.org>
Tue, 16 Apr 2002 21:36:29 +0000
(21:36 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 16 Apr 2002 21:36:29 +0000
(21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2269
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Constants.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Constants.cpp
b/lib/VMCore/Constants.cpp
index f3f3f49bf63cd7160235366c82edf1902688e054..b2335bc9444a0cd90e84223bd884a443a580a605 100644
(file)
--- a/
lib/VMCore/Constants.cpp
+++ b/
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) {