[libcxx] r284941 - Fix shadowing warning. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 23 11:47:59 PDT 2016


Author: ericwf
Date: Sun Oct 23 13:47:58 2016
New Revision: 284941

URL: http://llvm.org/viewvc/llvm-project?rev=284941&view=rev
Log:
Fix shadowing warning. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.assign/emplace.pass.cpp

Modified: libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.assign/emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.assign/emplace.pass.cpp?rev=284941&r1=284940&r2=284941&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.assign/emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/optional/optional.object/optional.object.assign/emplace.pass.cpp Sun Oct 23 13:47:58 2016
@@ -81,8 +81,8 @@ void test_multi_arg()
 {
     test_one_arg<T>();
     using Opt = std::optional<T>;
-    Opt opt;
     {
+        Opt opt;
         opt.emplace(101, 41);
         assert(static_cast<bool>(opt) == true);
         assert(*opt == T(101, 41));




More information about the cfe-commits mailing list