[MachineLICM] Fix handling of memoperands
[oota-llvm.git] / unittests / Analysis / CallGraphTest.cpp
index 29e9aa631827436a86f3ce52acbb07304f6b66df..777907a55b11c4e653577b8e889ba1eaf17718af 100644 (file)
@@ -35,15 +35,12 @@ template <typename Ty> void canSpecializeGraphTraitsIterators(Ty *G) {
 
   auto S = GraphTraits<NodeTy *>::child_begin(N);
   auto F = GraphTraits<NodeTy *>::child_end(N);
-  auto Y = ++S;
 
   // Should be able to iterate over immediate successors of a node.
   static_assert(std::is_same<decltype(*S), NodeTy *>::value,
                 "Node type does not match");
   static_assert(std::is_same<decltype(*F), NodeTy *>::value,
                 "Node type does not match");
-  static_assert(std::is_same<decltype(*Y), NodeTy *>::value,
-                "Node type does not match");
 }
 
 TEST(CallGraphTest, GraphTraitsSpecialization) {