[libcxx] r267961 - Add a return value for nasty_mutex::operator&. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 17:45:46 PDT 2016


Author: ericwf
Date: Thu Apr 28 19:45:46 2016
New Revision: 267961

URL: http://llvm.org/viewvc/llvm-project?rev=267961&view=rev
Log:
Add a return value for nasty_mutex::operator&. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/support/nasty_containers.hpp

Modified: libcxx/trunk/test/support/nasty_containers.hpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/support/nasty_containers.hpp?rev=267961&r1=267960&r2=267961&view=diff
==============================================================================
--- libcxx/trunk/test/support/nasty_containers.hpp (original)
+++ libcxx/trunk/test/support/nasty_containers.hpp Thu Apr 28 19:45:46 2016
@@ -287,7 +287,7 @@ public:
      nasty_mutex() _NOEXCEPT {}
      ~nasty_mutex() {}
 
-	nasty_mutex *operator& ()   { assert(false); }
+	nasty_mutex *operator& ()   { assert(false); return nullptr; }
 	template <typename T>
 	void operator, (const T &) { assert(false); }
 




More information about the cfe-commits mailing list