Skip to content

Commit 8d08c3a

Browse files
authored
Update Constants.cpp
1 parent f5bdac9 commit 8d08c3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/IR/Constants.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,10 +3130,8 @@ bool ConstantDataSequential::isCString() const {
31303130

31313131
bool ConstantDataSequential::isUnicodeString() const {
31323132
Type *CDSType = this->getElementType();
3133-
Type *GVType = IntegerType::getInt16Ty(this->getContext());
3134-
if (CDSType != GVType) {
3133+
if (CDSType != IntegerType::getInt16Ty(this->getContext()))
31353134
return false;
3136-
}
31373135

31383136
StringRef RawDataValues = this->getRawDataValues();
31393137
unsigned int NumElements = this->getNumElements();

0 commit comments

Comments
 (0)