projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a C++11 ThreadPool implementation in LLVM
[oota-llvm.git]
/
unittests
/
ADT
/
SCCIteratorTest.cpp
diff --git
a/unittests/ADT/SCCIteratorTest.cpp
b/unittests/ADT/SCCIteratorTest.cpp
index be52343fbee3e44dd7a9fc0350c2685d4bf502b8..da8c04483f9cabddaf12720f20efcf43a9f6e0d3 100644
(file)
--- a/
unittests/ADT/SCCIteratorTest.cpp
+++ b/
unittests/ADT/SCCIteratorTest.cpp
@@
-250,7
+250,7
@@
TEST(SCCIteratorTest, AllSmallGraphs) {
typedef Graph<NUM_NODES> GT;
/// Enumerate all graphs using NUM_GRAPHS bits.
typedef Graph<NUM_NODES> GT;
/// Enumerate all graphs using NUM_GRAPHS bits.
-
assert(NUM_GRAPHS < sizeof(unsigned) * CHAR_BIT &&
"Too many graphs!");
+
static_assert(NUM_GRAPHS < sizeof(unsigned) * CHAR_BIT,
"Too many graphs!");
for (unsigned GraphDescriptor = 0; GraphDescriptor < (1U << NUM_GRAPHS);
++GraphDescriptor) {
GT G;
for (unsigned GraphDescriptor = 0; GraphDescriptor < (1U << NUM_GRAPHS);
++GraphDescriptor) {
GT G;