diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2019-05-28 22:42:32 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2019-05-28 22:42:32 +0000 |
commit | 1efbe67414fd66e74050fb02100f04265e0a51ae (patch) | |
tree | 89bb7d875be676684cae2de8e9c4a02f91d47643 /libcxx/include/regex | |
parent | d02da8f42c2eb60dcf97120e2baeced43c1ec6e6 (diff) | |
download | bcm5719-llvm-1efbe67414fd66e74050fb02100f04265e0a51ae.tar.gz bcm5719-llvm-1efbe67414fd66e74050fb02100f04265e0a51ae.zip |
Fix an incorrect 'Throws' in the regex code. Add a test for the new behavior. Reviewed as https://reviews.llvm.org/D61828. Thanks to Mark for the catch and the fix.
llvm-svn: 361887
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r-- | libcxx/include/regex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex index 1f397cd41f7..a0e3ba61e71 100644 --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -2306,7 +2306,7 @@ public: else { if (__b.size() != 1 || __e.size() != 1) - __throw_regex_error<regex_constants::error_collate>(); + __throw_regex_error<regex_constants::error_range>(); if (__icase_) { __b[0] = __traits_.translate_nocase(__b[0]); |