diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-12 17:56:40 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-12 17:56:40 +0000 |
commit | 7000ca3f55b87a26883f3aca4855c93ada74b749 (patch) | |
tree | e4f8ff5faa90958897599a7a82fbe63f812b8ff8 /llvm/lib/CodeGen/SelectionDAG | |
parent | 5ca10d0edbf387b605bd7358152b42b66d133863 (diff) | |
download | bcm5719-llvm-7000ca3f55b87a26883f3aca4855c93ada74b749.tar.gz bcm5719-llvm-7000ca3f55b87a26883f3aca4855c93ada74b749.zip |
Modernize old-style static asserts. NFC.
llvm-svn: 219588
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index df9121ac2ca..7fb7aba00c4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2737,7 +2737,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL, case ISD::FP_TO_UINT: { integerPart x[2]; bool ignored; - assert(integerPartWidth >= 64); + static_assert(integerPartWidth >= 64, "APFloat parts too small!"); // FIXME need to be more flexible about rounding mode. APFloat::opStatus s = V.convertToInteger(x, VT.getSizeInBits(), Opcode==ISD::FP_TO_SINT, |