projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ede3a2
)
CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 18 Nov 2014 12:23:19 +0000
(12:23 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 18 Nov 2014 12:23:19 +0000
(12:23 +0000)
MSVC Runtime detects "Assertion failed: vector iterator not incrementable"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222233
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/Analysis/CallGraphTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/Analysis/CallGraphTest.cpp
b/unittests/Analysis/CallGraphTest.cpp
index
29e9aa6
..
777907a
100644
(file)
--- a/
unittests/Analysis/CallGraphTest.cpp
+++ b/
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) {