Modernize old-style static asserts. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219588 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2014-10-12 17:56:40 +00:00
parent c6133c17e0
commit c67df0c462
3 changed files with 3 additions and 5 deletions

View File

@@ -35,8 +35,7 @@ using namespace llvm;
/* Assumed in hexadecimal significand parsing, and conversion to
hexadecimal strings. */
#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
COMPILE_TIME_ASSERT(integerPartWidth % 4 == 0);
static_assert(integerPartWidth % 4 == 0, "Part width must be divisible by 4!");
namespace llvm {