[AST] strcmp/memcmp always compares unsigned chars.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 23 Apr 2018 22:04:34 +0000 (22:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 23 Apr 2018 22:04:34 +0000 (22:04 +0000)
commit33b7092601480cd7ef8d15c702eb021307192fa2
tree243c22be382095ef1b5d95980d9931f959f0c172
parent403c667b4ba633eeb1772fd10759b9cc77699ae3
[AST] strcmp/memcmp always compares unsigned chars.

This makes it return the right result in a couple of edge cases. The
wide versions always do the comparison on the underlying wchar_t type.

llvm-svn: 330656
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constexpr-string.cpp