From 7000ca3f55b87a26883f3aca4855c93ada74b749 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 12 Oct 2014 17:56:40 +0000 Subject: Modernize old-style static asserts. NFC. llvm-svn: 219588 --- llvm/lib/Support/APFloat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Support/APFloat.cpp') diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 3063a07f9ff..57fbe897fc8 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -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 { -- cgit v1.2.3