diff options
| author | David Zarzycki <dave@znu.io> | 2019-11-13 10:55:19 +0200 |
|---|---|---|
| committer | David Zarzycki <dave@znu.io> | 2019-11-13 10:55:19 +0200 |
| commit | 1d55c9e59ebf3f3ff572d42da433b2f72f1ce900 (patch) | |
| tree | 2bfefbfd8f07ee984298b5d4ca3c5b2de3bb1c3f /libcxx/test | |
| parent | d384ad6b636d4a8c55ef53d5316d008a05161b1f (diff) | |
| download | bcm5719-llvm-1d55c9e59ebf3f3ff572d42da433b2f72f1ce900.tar.gz bcm5719-llvm-1d55c9e59ebf3f3ff572d42da433b2f72f1ce900.zip | |
[libcxx testing] Fix -Wtautological-overlap-compare bug
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/support/container_debug_tests.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/support/container_debug_tests.h b/libcxx/test/support/container_debug_tests.h index 347196ac79c..36496c24e2b 100644 --- a/libcxx/test/support/container_debug_tests.h +++ b/libcxx/test/support/container_debug_tests.h @@ -63,15 +63,15 @@ enum ContainerType { }; constexpr bool isSequential(ContainerType CT) { - return CT_Vector >= CT && CT_ForwardList <= CT; + return CT >= CT_Vector && CT <= CT_ForwardList; } constexpr bool isAssociative(ContainerType CT) { - return CT_Map >= CT && CT_MultiSet <= CT; + return CT >= CT_Map && CT <= CT_MultiSet; } constexpr bool isUnordered(ContainerType CT) { - return CT_UnorderedMap >= CT && CT_UnorderedMultiSet <= CT; + return CT >= CT_UnorderedMap && CT <= CT_UnorderedMultiSet; } constexpr bool isSet(ContainerType CT) { |

