[Lldb-commits] [lldb] r214091 - Fix the MSVC build. MSVC does not support constexpr.

Zachary Turner zturner at google.com
Mon Jul 28 09:44:29 PDT 2014


Author: zturner
Date: Mon Jul 28 11:44:28 2014
New Revision: 214091

URL: http://llvm.org/viewvc/llvm-project?rev=214091&view=rev
Log:
Fix the MSVC build.  MSVC does not support constexpr.

Modified:
    lldb/trunk/source/Core/ArchSpec.cpp

Modified: lldb/trunk/source/Core/ArchSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=214091&r1=214090&r2=214091&view=diff
==============================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp (original)
+++ lldb/trunk/source/Core/ArchSpec.cpp Mon Jul 28 11:44:28 2014
@@ -120,7 +120,7 @@ static const CoreDefinition g_core_defin
 
 // Ensure that we have an entry in the g_core_definitions for each core. If you comment out an entry above,
 // you will need to comment out the corresponding ArchSpec::Core enumeration.
-static_assert(llvm::array_lengthof(g_core_definitions) == ArchSpec::kNumCores, "make sure we have one core definition for each core");
+static_assert(sizeof(g_core_definitions) / sizeof(CoreDefinition) == ArchSpec::kNumCores, "make sure we have one core definition for each core");
 
 
 struct ArchDefinitionEntry





More information about the lldb-commits mailing list