diff --git a/clang/include/clang/AST/VTableBuilder.h b/clang/include/clang/AST/VTableBuilder.h index 2ede868fc9ba..7b8fb04a7650 100644 --- a/clang/include/clang/AST/VTableBuilder.h +++ b/clang/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 {