diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2022-11-08 13:11:10 +0000 |
---|---|---|
committer | Nathan James <n.james93@hotmail.co.uk> | 2022-11-08 13:11:41 +0000 |
commit | 632a389f96355cbe7ed8fa7b8d2ed6267c92457c (patch) | |
tree | 11459955fe1fbe372cb32dc3a262c837b811e9b6 /llvm/unittests/Analysis/CallGraphTest.cpp | |
parent | 46d53f45d89b54d55304cfd7cd3d6c6232dbf529 (diff) | |
download | llvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.zip llvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.tar.gz llvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.tar.bz2 |
Revert "[llvm][NFC] Use c++17 style variable type traits"
This reverts commit 1834a310d060d55748ca38d4ae0482864c2047d8.
Diffstat (limited to 'llvm/unittests/Analysis/CallGraphTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/CallGraphTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/unittests/Analysis/CallGraphTest.cpp b/llvm/unittests/Analysis/CallGraphTest.cpp index 566733f..0060d2c 100644 --- a/llvm/unittests/Analysis/CallGraphTest.cpp +++ b/llvm/unittests/Analysis/CallGraphTest.cpp @@ -23,11 +23,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_v<decltype(*I), NodeRef>, + static_assert(std::is_same<decltype(*I), NodeRef>::value, "Node type does not match"); - static_assert(std::is_same_v<decltype(*X), NodeRef>, + static_assert(std::is_same<decltype(*X), NodeRef>::value, "Node type does not match"); - static_assert(std::is_same_v<decltype(*E), NodeRef>, + static_assert(std::is_same<decltype(*E), NodeRef>::value, "Node type does not match"); NodeRef N = GraphTraits<Ty *>::getEntryNode(G); @@ -36,9 +36,9 @@ template <typename Ty> void canSpecializeGraphTraitsIterators(Ty *G) { auto F = GraphTraits<NodeRef>::child_end(N); // Should be able to iterate over immediate successors of a node. - static_assert(std::is_same_v<decltype(*S), NodeRef>, + static_assert(std::is_same<decltype(*S), NodeRef>::value, "Node type does not match"); - static_assert(std::is_same_v<decltype(*F), NodeRef>, + static_assert(std::is_same<decltype(*F), NodeRef>::value, "Node type does not match"); } |