summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/CallGraphTest.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-11-18 12:23:19 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-11-18 12:23:19 +0000
commit6432749a4f17f14eb8a721a05222301ed4548742 (patch)
tree3bbe335b69a602e7a2c6c1c2358bb4c2ea70dd78 /llvm/unittests/Analysis/CallGraphTest.cpp
parent7555f5ed1f0b76ef3ff0b0550f1d62a2203c69d3 (diff)
downloadbcm5719-llvm-6432749a4f17f14eb8a721a05222301ed4548742.tar.gz
bcm5719-llvm-6432749a4f17f14eb8a721a05222301ed4548742.zip
CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.
MSVC Runtime detects "Assertion failed: vector iterator not incrementable" llvm-svn: 222233
Diffstat (limited to 'llvm/unittests/Analysis/CallGraphTest.cpp')
-rw-r--r--llvm/unittests/Analysis/CallGraphTest.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/unittests/Analysis/CallGraphTest.cpp b/llvm/unittests/Analysis/CallGraphTest.cpp
index 29e9aa63182..777907a55b1 100644
--- a/llvm/unittests/Analysis/CallGraphTest.cpp
+++ b/llvm/unittests/Analysis/CallGraphTest.cpp
@@ -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) {
OpenPOWER on IntegriCloud