summaryrefslogtreecommitdiffstats
path: root/libcxx/include/regex
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2010-07-22 14:12:20 +0000
committerHoward Hinnant <hhinnant@apple.com>2010-07-22 14:12:20 +0000
commitb762bea3ba7ca9f0809e77f6fcefe0a0fb5db22d (patch)
tree92cbf008388d04545a309f4fe266dd9c3d131c7f /libcxx/include/regex
parentf0c133fe88c7aab93a101125537bcdf15a18280c (diff)
downloadbcm5719-llvm-b762bea3ba7ca9f0809e77f6fcefe0a0fb5db22d.tar.gz
bcm5719-llvm-b762bea3ba7ca9f0809e77f6fcefe0a0fb5db22d.zip
A few more tests for posix extended alternation
llvm-svn: 109107
Diffstat (limited to 'libcxx/include/regex')
-rw-r--r--libcxx/include/regex6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex
index 68096b0c0ee..fef35949c03 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -1596,10 +1596,10 @@ void
__alternate<_CharT>::__exec_split(bool __second, __state& __s) const
{
__s.__do_ = __state::__accept_but_not_consume;
- if (!__second)
- __s.__node_ = this->first();
- else
+ if (__second)
__s.__node_ = this->second();
+ else
+ __s.__node_ = this->first();
}
// __begin_marked_subexpression
OpenPOWER on IntegriCloud