Author: labath
Date: Wed Jan 20 06:23:23 2016
New Revision: 258306

URL: http://llvm.org/viewvc/llvm-project?rev=258306&view=rev
Log:
Fix clang warning in RenderScriptRuntime

std::array should have "the same semantics as a struct holding a C-style array 
T[N] as its only
non-static data member", so the initialization should have one more level of 
braces. Hopefully,
no compiler will object to that.

Modified:
    
lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp

Modified: 
lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp?rev=258306&r1=258305&r2=258306&view=diff
==============================================================================
--- 
lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 (original)
+++ 
lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
 Wed Jan 20 06:23:23 2016
@@ -391,7 +391,7 @@ const unsigned int RenderScriptRuntime::
 };
 
 const std::string RenderScriptRuntime::s_runtimeExpandSuffix(".expand");
-const std::array<const char *, 3> 
RenderScriptRuntime::s_runtimeCoordVars{"rsIndex", "p->current.y", 
"p->current.z"};
+const std::array<const char *, 3> 
RenderScriptRuntime::s_runtimeCoordVars{{"rsIndex", "p->current.y", 
"p->current.z"}};
 //------------------------------------------------------------------
 // Static Functions
 //------------------------------------------------------------------


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to