summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/CallGraphTest.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2016-08-19 21:20:13 +0000
committerTim Shen <timshen91@gmail.com>2016-08-19 21:20:13 +0000
commitb5e0f5ac953243829d52aaa0bab65899810b880b (patch)
treed20eb83e0345ef7c1da8278f0a3baa0fadef4b98 /llvm/unittests/Analysis/CallGraphTest.cpp
parente4582d4a2e36a29b8b7bf3d6e2b20c7ce600ece3 (diff)
downloadbcm5719-llvm-b5e0f5ac953243829d52aaa0bab65899810b880b.tar.gz
bcm5719-llvm-b5e0f5ac953243829d52aaa0bab65899810b880b.zip
[GraphTraits] Make nodes_iterator dereference to NodeType*/NodeRef
Currently nodes_iterator may dereference to a NodeType* or a NodeType&. Make them all dereference to NodeType*, which is NodeRef later. Differential Revision: https://reviews.llvm.org/D23704 Differential Revision: https://reviews.llvm.org/D23705 llvm-svn: 279326
Diffstat (limited to 'llvm/unittests/Analysis/CallGraphTest.cpp')
-rw-r--r--llvm/unittests/Analysis/CallGraphTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Analysis/CallGraphTest.cpp b/llvm/unittests/Analysis/CallGraphTest.cpp
index af46291074c..0c9280446bc 100644
--- a/llvm/unittests/Analysis/CallGraphTest.cpp
+++ b/llvm/unittests/Analysis/CallGraphTest.cpp
@@ -24,11 +24,11 @@ template <typename Ty> void canSpecializeGraphTraitsIterators(Ty *G) {
auto X = ++I;
// Should be able to iterate over all nodes of the graph.
- static_assert(std::is_same<decltype(*I), NodeTy &>::value,
+ static_assert(std::is_same<decltype(*I), NodeTy *>::value,
"Node type does not match");
- static_assert(std::is_same<decltype(*X), NodeTy &>::value,
+ static_assert(std::is_same<decltype(*X), NodeTy *>::value,
"Node type does not match");
- static_assert(std::is_same<decltype(*E), NodeTy &>::value,
+ static_assert(std::is_same<decltype(*E), NodeTy *>::value,
"Node type does not match");
NodeTy *N = GraphTraits<Ty *>::getEntryNode(G);
OpenPOWER on IntegriCloud