Fix bug: Assembler/2003-01-30-UnsignedString.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-01-30 22:24:26 +00:00
parent 5f9dbfff97
commit bae362f8fc

View File

@ -903,7 +903,7 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
Vals.push_back(ConstantSInt::get(ETy, *C));
} else if (ETy == Type::UByteTy) {
for (char *C = $3; C != EndStr; ++C)
Vals.push_back(ConstantUInt::get(ETy, *C));
Vals.push_back(ConstantUInt::get(ETy, (unsigned char)*C));
} else {
free($3);
ThrowException("Cannot build string arrays of non byte sized elements!");