aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-04-03 18:22:17 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-04-03 18:26:14 -0700
commit4ede8879924c08ae5b495d3f421c167d822a60be (patch)
tree792a29815f32475480dd9740f1cb572851cf421d /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent48ba745eacf883080152fe16b5b1305657d001ca (diff)
downloadllvm-4ede8879924c08ae5b495d3f421c167d822a60be.zip
llvm-4ede8879924c08ae5b495d3f421c167d822a60be.tar.gz
llvm-4ede8879924c08ae5b495d3f421c167d822a60be.tar.bz2
PR45402: Make the restrictions on constant evaluation of memcmp and
memchr consistent and comprehensible, and document them. We previously allowed evaluation of memcmp on arrays of integers of any size, so long as the call evaluated to 0, and allowed evaluation of memchr on any array of integral type of size 1 (including enums). The purpose of constant-evaluating these builtins is only to support constexpr std::char_traits, so we now consistently allow them on arrays of (possibly signed or unsigned) char only.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions