aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-07-24 14:03:25 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-07-24 14:03:25 +0100
commit4f3c75ba3a62d6f3794afd10d191807a68d7ba3b (patch)
tree8cab9715292c43bb5134cb78f788dd258ee8db13 /gcc/expr.c
parent7a4be380498046d9b0f88d32ff5a3189c913cc75 (diff)
downloadgcc-4f3c75ba3a62d6f3794afd10d191807a68d7ba3b.zip
gcc-4f3c75ba3a62d6f3794afd10d191807a68d7ba3b.tar.gz
gcc-4f3c75ba3a62d6f3794afd10d191807a68d7ba3b.tar.bz2
Reorder conditions in uses-allocator construction helper
The erased_type condition is only true for code using the Library Fundamentals TS, so assume it's less common and only check it after checking for convertibility. This does mean for types using erased_type the more expensive convertibility check is done first, but such types are rare. * include/bits/uses_allocator.h (__is_erased_or_convertible): Reorder conditions. Add comments. * testsuite/20_util/uses_allocator/69293_neg.cc: Adjust dg-error line. * testsuite/20_util/uses_allocator/cons_neg.cc: Likewise. * testsuite/20_util/scoped_allocator/69293_neg.cc: Likewise. From-SVN: r262945
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions