Change linkInModule to take a std::unique_ptr.
[oota-llvm.git] / unittests / ADT / SCCIteratorTest.cpp
index be52343fbee3e44dd7a9fc0350c2685d4bf502b8..da8c04483f9cabddaf12720f20efcf43a9f6e0d3 100644 (file)
@@ -250,7 +250,7 @@ TEST(SCCIteratorTest, AllSmallGraphs) {
   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;