From 59873511377c4601a828251d06ea80ec0eecfbfa Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 8 Sep 2016 01:45:28 +0000 Subject: [PATCH] Add explicit casts to size_t to try to appease MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280899 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/VTableBuilder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/VTableBuilder.h b/include/clang/AST/VTableBuilder.h index 2ede868fc9..7b8fb04a76 100644 --- a/include/clang/AST/VTableBuilder.h +++ b/include/clang/AST/VTableBuilder.h @@ -243,11 +243,11 @@ public: ~VTableLayout(); ArrayRef vtable_components() const { - return {VTableComponents.get(), NumVTableComponents}; + return {VTableComponents.get(), size_t(NumVTableComponents)}; } ArrayRef vtable_thunks() const { - return {VTableThunks.get(), NumVTableThunks}; + return {VTableThunks.get(), size_t(NumVTableThunks)}; } uint64_t getAddressPoint(BaseSubobject Base) const { -- 2.40.0