[llvm] r222233 - CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.

NAKAMURA Takumi geek4civic at gmail.com
Tue Nov 18 04:23:20 PST 2014


Author: chapuni
Date: Tue Nov 18 06:23:19 2014
New Revision: 222233

URL: http://llvm.org/viewvc/llvm-project?rev=222233&view=rev
Log:
CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.

MSVC Runtime detects "Assertion failed: vector iterator not incrementable"

Modified:
    llvm/trunk/unittests/Analysis/CallGraphTest.cpp

Modified: llvm/trunk/unittests/Analysis/CallGraphTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Analysis/CallGraphTest.cpp?rev=222233&r1=222232&r2=222233&view=diff
==============================================================================
--- llvm/trunk/unittests/Analysis/CallGraphTest.cpp (original)
+++ llvm/trunk/unittests/Analysis/CallGraphTest.cpp Tue Nov 18 06:23:19 2014
@@ -35,15 +35,12 @@ template <typename Ty> void canSpecializ
 
   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) {





More information about the llvm-commits mailing list