mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-21 11:11:42 +00:00
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:
parent
5f9dbfff97
commit
bae362f8fc
@ -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!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user