From 476a701bb9a3be9217ec08527e581e05f42cad14 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Tue, 14 Apr 2020 14:54:15 -0700 Subject: [PATCH] [mlir][NFC] Remove the STLExtras.h header file now that it has been merged into LLVM. Now that no more utilities exist within, this file can be deleted. Differential Revision: https://reviews.llvm.org/D78079 --- unittests/ADT/TypeTraitsTest.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/unittests/ADT/TypeTraitsTest.cpp b/unittests/ADT/TypeTraitsTest.cpp index d38505ce37c..74d3bbe1fcc 100644 --- a/unittests/ADT/TypeTraitsTest.cpp +++ b/unittests/ADT/TypeTraitsTest.cpp @@ -33,9 +33,6 @@ template struct CheckFunctionTraits { using FuncType = bool (*)(const int &); struct CheckFunctionPointer : CheckFunctionTraits {}; -static bool func(const int &v); -struct CheckFunctionPointer2 : CheckFunctionTraits {}; - /// Test method pointers. struct Foo { bool func(const int &v); @@ -43,7 +40,9 @@ struct Foo { struct CheckMethodPointer : CheckFunctionTraits {}; /// Test lambda references. -auto lambdaFunc = [](const int &v) -> bool { return true; }; +LLVM_ATTRIBUTE_UNUSED auto lambdaFunc = [](const int &v) -> bool { + return true; +}; struct CheckLambda : CheckFunctionTraits {}; } // end anonymous namespace @@ -70,7 +69,7 @@ static_assert(!is_detected::value, // is_invocable //===----------------------------------------------------------------------===// -static void invocable_fn(int) {} +void invocable_fn(int); static_assert(is_invocable::value, "expected function to be invocable");