diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2015-03-16 09:53:42 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2015-03-16 09:53:42 +0000 |
commit | fee043439c8f2dc63c408228ea52fdefb6514d80 (patch) | |
tree | 69ff502bbfae13e758a78b6cbee43a183459e070 /llvm/lib/CodeGen/SlotIndexes.cpp | |
parent | bd250daee053252042ed5a33c8b13e3b24a61f52 (diff) | |
download | bcm5719-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/CodeGen/SlotIndexes.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SlotIndexes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp index d46621d691b..025ae70ed88 100644 --- a/llvm/lib/CodeGen/SlotIndexes.cpp +++ b/llvm/lib/CodeGen/SlotIndexes.cpp @@ -127,7 +127,7 @@ void SlotIndexes::renumberIndexes() { void SlotIndexes::renumberIndexes(IndexList::iterator curItr) { // Number indexes with half the default spacing so we can catch up quickly. const unsigned Space = SlotIndex::InstrDist/2; - assert((Space & 3) == 0 && "InstrDist must be a multiple of 2*NUM"); + static_assert((Space & 3) == 0, "InstrDist must be a multiple of 2*NUM"); IndexList::iterator startItr = std::prev(curItr); unsigned index = startItr->getIndex(); |