From 1834a310d060d55748ca38d4ae0482864c2047d8 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 8 Nov 2022 12:22:50 +0000 Subject: [llvm][NFC] Use c++17 style variable type traits This was done as a test for D137302 and it makes sense to push these changes Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D137493 --- llvm/unittests/Analysis/CallGraphTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/unittests/Analysis/CallGraphTest.cpp') diff --git a/llvm/unittests/Analysis/CallGraphTest.cpp b/llvm/unittests/Analysis/CallGraphTest.cpp index 0060d2c..566733f 100644 --- a/llvm/unittests/Analysis/CallGraphTest.cpp +++ b/llvm/unittests/Analysis/CallGraphTest.cpp @@ -23,11 +23,11 @@ template void canSpecializeGraphTraitsIterators(Ty *G) { auto X = ++I; // Should be able to iterate over all nodes of the graph. - static_assert(std::is_same::value, + static_assert(std::is_same_v, "Node type does not match"); - static_assert(std::is_same::value, + static_assert(std::is_same_v, "Node type does not match"); - static_assert(std::is_same::value, + static_assert(std::is_same_v, "Node type does not match"); NodeRef N = GraphTraits::getEntryNode(G); @@ -36,9 +36,9 @@ template void canSpecializeGraphTraitsIterators(Ty *G) { auto F = GraphTraits::child_end(N); // Should be able to iterate over immediate successors of a node. - static_assert(std::is_same::value, + static_assert(std::is_same_v, "Node type does not match"); - static_assert(std::is_same::value, + static_assert(std::is_same_v, "Node type does not match"); } -- cgit v1.1