mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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:
@ -2288,8 +2288,7 @@ void APInt::print(raw_ostream &OS, bool isSigned) const {
|
||||
|
||||
// Assumed by lowHalf, highHalf, partMSB and partLSB. A fairly safe
|
||||
// and unrestricting assumption.
|
||||
#define COMPILE_TIME_ASSERT(cond) extern int CTAssert[(cond) ? 1 : -1]
|
||||
COMPILE_TIME_ASSERT(integerPartWidth % 2 == 0);
|
||||
static_assert(integerPartWidth % 2 == 0, "Part width must be divisible by 2!");
|
||||
|
||||
/* Some handy functions local to this file. */
|
||||
namespace {
|
||||
|
Reference in New Issue
Block a user