diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2012-08-24 18:06:47 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2012-08-24 18:06:47 +0000 |
| commit | 45c03a8f8d45edd174d715f4245a7984f766e2eb (patch) | |
| tree | e12143f228275c3ed569ea7ee92e44344fb1a354 /libcxx/include/fstream | |
| parent | 219bd1554f0c3fe241d1d526e00c8f4946cc1efb (diff) | |
| download | bcm5719-llvm-45c03a8f8d45edd174d715f4245a7984f766e2eb.tar.gz bcm5719-llvm-45c03a8f8d45edd174d715f4245a7984f766e2eb.zip | |
Fixed order of calling use_facet vs setbuf in basic_filebuf default constructor.
llvm-svn: 162571
Diffstat (limited to 'libcxx/include/fstream')
| -rw-r--r-- | libcxx/include/fstream | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/fstream b/libcxx/include/fstream index 4a9cb7203c1..83731a1a16d 100644 --- a/libcxx/include/fstream +++ b/libcxx/include/fstream @@ -261,12 +261,12 @@ basic_filebuf<_CharT, _Traits>::basic_filebuf() __owns_ib_(false), __always_noconv_(false) { - setbuf(0, 4096); if (has_facet<codecvt<char_type, char, state_type> >(this->getloc())) { __cv_ = &use_facet<codecvt<char_type, char, state_type> >(this->getloc()); __always_noconv_ = __cv_->always_noconv(); } + setbuf(0, 4096); } #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES |

