Make sure we don't crash if someone (E.G.) comments out on entry from g_core_definiti...
authorGreg Clayton <gclayton@apple.com>
Wed, 23 Jul 2014 18:12:06 +0000 (18:12 +0000)
committerGreg Clayton <gclayton@apple.com>
Wed, 23 Jul 2014 18:12:06 +0000 (18:12 +0000)
commit56b796856fcd59ce93eca78b0754a7c1295ccfc0
tree188471d7bcd4a608da80c98a60dd0f3542ccc062
parentdf2c3e89b5fc44127d6597eaa9d71b8b770ead03
Make sure we don't crash if someone (E.G.) comments out on entry from g_core_definitions[] without removing the ArchSpec::Core enumeration when submitting from source.

We now catch the issue with a static_assert() at compile time and use llvm::array_lengthof(g_core_definitions) as well.

<rdar://problem/17767541>

llvm-svn: 213778
lldb/source/Core/ArchSpec.cpp