[llvm] r336649 - Fix MSVC "signed/unsigned mismatch" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 10 02:46:57 PDT 2018
Author: rksimon
Date: Tue Jul 10 02:46:57 2018
New Revision: 336649
URL: http://llvm.org/viewvc/llvm-project?rev=336649&view=rev
Log:
Fix MSVC "signed/unsigned mismatch" warning. NFCI.
Modified:
llvm/trunk/include/llvm/ADT/FunctionExtras.h
Modified: llvm/trunk/include/llvm/ADT/FunctionExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/FunctionExtras.h?rev=336649&r1=336648&r2=336649&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/FunctionExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/FunctionExtras.h Tue Jul 10 02:46:57 2018
@@ -44,7 +44,7 @@ template <typename FunctionT> class uniq
template <typename ReturnT, typename... ParamTs>
class unique_function<ReturnT(ParamTs...)> {
- 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,
More information about the llvm-commits
mailing list