aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-01-10 15:38:34 -0500
committerJason Merrill <jason@redhat.com>2020-01-13 12:50:12 -0500
commit69dc042f91c70458ffb6e7b147f093799cee2100 (patch)
tree35aa87883d243598c9f505525aff4f27c13d43b6 /gcc/predict.c
parent7c82dd6c02d44d9d2cd84dda137c00b1a3cd6c90 (diff)
downloadgcc-69dc042f91c70458ffb6e7b147f093799cee2100.zip
gcc-69dc042f91c70458ffb6e7b147f093799cee2100.tar.gz
gcc-69dc042f91c70458ffb6e7b147f093799cee2100.tar.bz2
PR c++/80265 - constexpr __builtin_mem*.
The library has already worked around this issue, but I was curious about why it wasn't working. The answer: because we were passing &var to fold, which doesn't know about the constexpr values hash table. Fixed by passing &"str" instead. * constexpr.c (cxx_eval_builtin_function_call): Expose STRING_CST to str/mem builtins.
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions