summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FloatingPoint.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2015-03-16 09:53:42 +0000
committerGabor Horvath <xazax.hun@gmail.com>2015-03-16 09:53:42 +0000
commitfee043439c8f2dc63c408228ea52fdefb6514d80 (patch)
tree69ff502bbfae13e758a78b6cbee43a183459e070 /llvm/lib/Target/X86/X86FloatingPoint.cpp
parentbd250daee053252042ed5a33c8b13e3b24a61f52 (diff)
downloadbcm5719-llvm-fee043439c8f2dc63c408228ea52fdefb6514d80.tar.gz
bcm5719-llvm-fee043439c8f2dc63c408228ea52fdefb6514d80.zip
[llvm] Replacing asserts with static_asserts where appropriate
Summary: This patch consists of the suggestions of clang-tidy/misc-static-assert check. Reviewers: alexfh Reviewed By: alexfh Subscribers: xazax.hun, llvm-commits Differential Revision: http://reviews.llvm.org/D8343 llvm-svn: 232366
Diffstat (limited to 'llvm/lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 456f4e633f2..9ddbfd5384f 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp
@@ -300,7 +300,7 @@ bool FPS::runOnMachineFunction(MachineFunction &MF) {
// function. If it is all integer, there is nothing for us to do!
bool FPIsUsed = false;
- assert(X86::FP6 == X86::FP0+6 && "Register enums aren't sorted right!");
+ static_assert(X86::FP6 == X86::FP0+6, "Register enums aren't sorted right!");
for (unsigned i = 0; i <= 6; ++i)
if (MF.getRegInfo().isPhysRegUsed(X86::FP0+i)) {
FPIsUsed = true;
OpenPOWER on IntegriCloud