]> granicus.if.org Git - clang/commit
When parsing a character literal, extract the characters from the
authorDouglas Gregor <dgregor@apple.com>
Tue, 27 Sep 2011 17:00:18 +0000 (17:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 27 Sep 2011 17:00:18 +0000 (17:00 +0000)
commit17c8c84fbc5cbde336fdef8fffe63c08a955ade9
treee29df19b73c24b682fd2dc139ed22f0041b07f18
parentc737acb8e86564becc5939d681089d1851e6be1a
When parsing a character literal, extract the characters from the
buffer as an 'unsigned char', so that integer promotion doesn't
sign-extend character values > 127 into oblivion. Fixes
<rdar://problem/10188919>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/LiteralSupport.cpp
test/Lexer/utf8-char-literal.cpp [new file with mode: 0644]