commit | 8b3efeb10303576fa21f18504383089cb1344735 | [log] [tgz] |
---|---|---|
author | Eli Friedman <efriedma@codeaurora.org> | Wed Jan 09 23:39:26 2019 +0000 |
committer | Eli Friedman <efriedma@codeaurora.org> | Wed Jan 09 23:39:26 2019 +0000 |
tree | fb7811c5542620c380c7e68995dc950494bbcfcc | |
parent | af085b4c8a2f0b36712e58b21aab75741c53c2bf [diff] |
[SimplifyLibCalls] Fix memchr expansion for constant strings. The C standard says "The memchr function locates the first occurrence of c (converted to an unsigned char)[...]". The expansion was missing the conversion to unsigned char. Fixes https://bugs.llvm.org/show_bug.cgi?id=39041 . Differential Revision: https://reviews.llvm.org/D55947 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350775 91177308-0d34-0410-b5e6-96231b3b80d8