Sema: The i8 suffix should yield a literal of type char
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Mar 2015 18:04:22 +0000 (18:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 6 Mar 2015 18:04:22 +0000 (18:04 +0000)
commitbe09e8e5cf8495fc81cee39de028d6f62451fc03
tree13d882289ed08a07418cc81a3fcf9a8946c3befa
parentef648462d26c62898e338806c405a937d9f9bb1d
Sema: The i8 suffix should yield a literal of type char

We would make i8 literals turn into signed char instead of char.  This
is incompatible with MSVC.

This fixes PR22824.

llvm-svn: 231494
clang/lib/AST/StmtPrinter.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/SemaCXX/ms_integer_suffix.cpp