[libcxx] r248988 - Fix initialzation order in dynarray

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 00:29:38 PDT 2015


Author: ericwf
Date: Thu Oct  1 02:29:38 2015
New Revision: 248988

URL: http://llvm.org/viewvc/llvm-project?rev=248988&view=rev
Log:
Fix initialzation order in dynarray

Modified:
    libcxx/trunk/include/experimental/dynarray

Modified: libcxx/trunk/include/experimental/dynarray
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/experimental/dynarray?rev=248988&r1=248987&r2=248988&view=diff
==============================================================================
--- libcxx/trunk/include/experimental/dynarray (original)
+++ libcxx/trunk/include/experimental/dynarray Thu Oct  1 02:29:38 2015
@@ -137,7 +137,7 @@ public:
 private:
     size_t                  __size_;
     value_type *            __base_;
-    _LIBCPP_ALWAYS_INLINE dynarray () noexcept : __base_(nullptr), __size_(0) {}
+    _LIBCPP_ALWAYS_INLINE dynarray () noexcept :  __size_(0), __base_(nullptr) {}
     
     static inline _LIBCPP_INLINE_VISIBILITY value_type* __allocate ( size_t count )
     {




More information about the cfe-commits mailing list