aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.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/CodeGen/MachineVerifier.cpp
parentbd250daee053252042ed5a33c8b13e3b24a61f52 (diff)
downloadllvm-fee043439c8f2dc63c408228ea52fdefb6514d80.zip
llvm-fee043439c8f2dc63c408228ea52fdefb6514d80.tar.gz
llvm-fee043439c8f2dc63c408228ea52fdefb6514d80.tar.bz2
[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/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 109c789..d39733b 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -739,7 +739,7 @@ void MachineVerifier::verifyInlineAsm(const MachineInstr *MI) {
if (!isUInt<5>(MI->getOperand(1).getImm()))
report("Unknown asm flags", &MI->getOperand(1), 1);
- assert(InlineAsm::MIOp_FirstOperand == 2 && "Asm format changed");
+ static_assert(InlineAsm::MIOp_FirstOperand == 2, "Asm format changed");
unsigned OpNo = InlineAsm::MIOp_FirstOperand;
unsigned NumOps;