[Lldb-commits] [lldb] r350834 - Fix compilation error on 32-bit architectures introduced in r350511

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 10 07:53:20 PST 2019


Author: labath
Date: Thu Jan 10 07:53:20 2019
New Revision: 350834

URL: http://llvm.org/viewvc/llvm-project?rev=350834&view=rev
Log:
Fix compilation error on 32-bit architectures introduced in r350511

The issue was a narrowing conversion when converting from uint64_t to a
size_t.

Modified:
    lldb/trunk/include/lldb/Utility/DataExtractor.h

Modified: lldb/trunk/include/lldb/Utility/DataExtractor.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/DataExtractor.h?rev=350834&r1=350833&r2=350834&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Utility/DataExtractor.h (original)
+++ lldb/trunk/include/lldb/Utility/DataExtractor.h Thu Jan 10 07:53:20 2019
@@ -1096,7 +1096,7 @@ public:
   void Checksum(llvm::SmallVectorImpl<uint8_t> &dest, uint64_t max_data = 0);
 
   llvm::ArrayRef<uint8_t> GetData() const {
-    return {GetDataStart(), GetByteSize()};
+    return {GetDataStart(), size_t(GetByteSize())};
   }
 
 protected:




More information about the lldb-commits mailing list