r280899 - Add explicit casts to size_t to try to appease MSVC.

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 7 18:45:28 PDT 2016


Author: pcc
Date: Wed Sep  7 20:45:28 2016
New Revision: 280899

URL: http://llvm.org/viewvc/llvm-project?rev=280899&view=rev
Log:
Add explicit casts to size_t to try to appease MSVC.

Modified:
    cfe/trunk/include/clang/AST/VTableBuilder.h

Modified: cfe/trunk/include/clang/AST/VTableBuilder.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/VTableBuilder.h?rev=280899&r1=280898&r2=280899&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/VTableBuilder.h (original)
+++ cfe/trunk/include/clang/AST/VTableBuilder.h Wed Sep  7 20:45:28 2016
@@ -243,11 +243,11 @@ public:
   ~VTableLayout();
 
   ArrayRef<VTableComponent> vtable_components() const {
-    return {VTableComponents.get(), NumVTableComponents};
+    return {VTableComponents.get(), size_t(NumVTableComponents)};
   }
 
   ArrayRef<VTableThunkTy> vtable_thunks() const {
-    return {VTableThunks.get(), NumVTableThunks};
+    return {VTableThunks.get(), size_t(NumVTableThunks)};
   }
 
   uint64_t getAddressPoint(BaseSubobject Base) const {




More information about the cfe-commits mailing list