diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2019-01-09 23:39:26 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2019-01-09 23:39:26 +0000 |
commit | d4e7a0d83ca785925a4f8c82d114377f5b156bbf (patch) | |
tree | 1c40cbaf08d91cd6ef285178ef823409bb25a056 /llvm/lib/Transforms/Utils/LowerSwitch.cpp | |
parent | 30ba0a0c950a0cdf23a70fce6c16d501c5f238c8 (diff) | |
download | bcm5719-llvm-d4e7a0d83ca785925a4f8c82d114377f5b156bbf.tar.gz bcm5719-llvm-d4e7a0d83ca785925a4f8c82d114377f5b156bbf.zip |
[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
llvm-svn: 350775
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
0 files changed, 0 insertions, 0 deletions