summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-07-28 16:44:28 +0000
committerZachary Turner <zturner@google.com>2014-07-28 16:44:28 +0000
commit3b2065f0176db3573b30381575c1655dc42c8dfe (patch)
tree7790eaedd3cf00fd3fa9b0d628ef0f7eb64448ea /lldb/source
parent261aa1f23abda9a05d04968b171ebbd8f3eec257 (diff)
downloadbcm5719-llvm-3b2065f0176db3573b30381575c1655dc42c8dfe.tar.gz
bcm5719-llvm-3b2065f0176db3573b30381575c1655dc42c8dfe.zip
Fix the MSVC build. MSVC does not support constexpr.
llvm-svn: 214091
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Core/ArchSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/ArchSpec.cpp b/lldb/source/Core/ArchSpec.cpp
index ece0cdefd5f..426f4df6bbd 100644
--- a/lldb/source/Core/ArchSpec.cpp
+++ b/lldb/source/Core/ArchSpec.cpp
@@ -120,7 +120,7 @@ static const CoreDefinition g_core_definitions[] =
// 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
OpenPOWER on IntegriCloud