Index: lldb/trunk/source/Core/DataExtractor.cpp =================================================================== --- lldb/trunk/source/Core/DataExtractor.cpp +++ lldb/trunk/source/Core/DataExtractor.cpp @@ -1830,10 +1830,8 @@ } else if (item_bit_size == ast->getTypeSize(ast->LongDoubleTy)) { - auto byte_size = item_byte_size; const auto &semantics = ast->getFloatTypeSemantics(ast->LongDoubleTy); - if (&semantics == &llvm::APFloat::x87DoubleExtended) - byte_size = 10; + const auto byte_size = (llvm::APFloat::getSizeInBits(semantics) + 7) / 8; llvm::APInt apint; if (GetAPInt(*this, &offset, byte_size, apint))