From c048599f224ed17fe0371614d9bcf1c8676496ec Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 10 Jul 2018 09:46:57 +0000 Subject: [PATCH] Fix MSVC "signed/unsigned mismatch" warning. NFCI. llvm-svn: 336649 --- llvm/include/llvm/ADT/FunctionExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/FunctionExtras.h b/llvm/include/llvm/ADT/FunctionExtras.h index a8c7bc486f24..2b75dc6ac219 100644 --- a/llvm/include/llvm/ADT/FunctionExtras.h +++ b/llvm/include/llvm/ADT/FunctionExtras.h @@ -44,7 +44,7 @@ template class unique_function; template class unique_function { - static constexpr int InlineStorageSize = sizeof(void *) * 3; + static constexpr size_t InlineStorageSize = sizeof(void *) * 3; // MSVC has a bug and ICEs if we give it a particular dependent value // expression as part of the `std::conditional` below. To work around this,