Fix a bug printing out %c formated characters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-17 17:43:01 +00:00
parent ef35ff066c
commit 2012d5e33f

View File

@ -336,7 +336,7 @@ GenericValue lle_X_sprintf(FunctionType *M, const vector<GenericValue> &Args) {
case '%':
sprintf(Buffer, FmtBuf); break;
case 'c':
sprintf(Buffer, FmtBuf, Args[ArgNo++].SByteVal); break;
sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal); break;
case 'd': case 'i':
case 'u': case 'o':
case 'x': case 'X':