Add explicit casts to size_t to try to appease MSVC.

llvm-svn: 280899
This commit is contained in:
Peter Collingbourne 2016-09-08 01:45:28 +00:00
parent c84921774f
commit f3fe5a7445
1 changed files with 2 additions and 2 deletions

View File

@ -243,11 +243,11 @@ public:
~VTableLayout(); ~VTableLayout();
ArrayRef<VTableComponent> vtable_components() const { ArrayRef<VTableComponent> vtable_components() const {
return {VTableComponents.get(), NumVTableComponents}; return {VTableComponents.get(), size_t(NumVTableComponents)};
} }
ArrayRef<VTableThunkTy> vtable_thunks() const { ArrayRef<VTableThunkTy> vtable_thunks() const {
return {VTableThunks.get(), NumVTableThunks}; return {VTableThunks.get(), size_t(NumVTableThunks)};
} }
uint64_t getAddressPoint(BaseSubobject Base) const { uint64_t getAddressPoint(BaseSubobject Base) const {