From: Chris Lattner Date: Thu, 30 Jan 2003 22:24:26 +0000 (+0000) Subject: Fix bug: Assembler/2003-01-30-UnsignedString.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bae362f8fcbaa772a4cfb26aeb716079b5b08336;p=oota-llvm.git 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 --- diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 1c990e72aa0..1189bb3706d 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -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!");