[Lldb-commits] [lldb] 9d83790 - [lldb] Fix build error in ValueObject test

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 7 02:04:57 PST 2025


Author: David Spickett
Date: 2025-02-07T10:03:23Z
New Revision: 9d83790d170cc0a06179514e2ab739f7ecafb78c

URL: https://github.com/llvm/llvm-project/commit/9d83790d170cc0a06179514e2ab739f7ecafb78c
DIFF: https://github.com/llvm/llvm-project/commit/9d83790d170cc0a06179514e2ab739f7ecafb78c.diff

LOG: [lldb] Fix build error in ValueObject test

Fixes 0cbc4983adcdbbd85ccb38b2dfbfe5985367b1b2.

llvm-project/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp(221): error C2065: 'u_int8_t': undeclared identifier

Added: 
    

Modified: 
    lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp b/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp
index 0ae3963f0c8320a..d311c05e5117867 100644
--- a/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp
+++ b/lldb/unittests/ValueObject/DynamicValueObjectLocalBuffer.cpp
@@ -218,7 +218,7 @@ class DynamicValueObjectLocalBufferTest : public ::testing::Test {
 TEST_F(DynamicValueObjectLocalBufferTest, BufferTooSmall) {
   /// Test that a value object with a buffer to small to fit the
   /// "dynamic" type will return an invalid dynamic value object.
-  u_int8_t value = 1;
+  uint8_t value = 1;
   ByteOrder endian = endian::InlHostByteOrder();
   DataExtractor data_extractor{&value, sizeof(value), endian, 4};
   TestValueObjectWithLocalBuffer(data_extractor, false);


        


More information about the lldb-commits mailing list