Skip to content

Commit a1023f6

Browse files
authored
Merge pull request #11653 from bulbazord/21.x-misaligned-load
[lldb] Fix misaligned loads violation in DataExtractor (llvm#163880)
2 parents 8144ac5 + b788b1a commit a1023f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/include/lldb/Utility/DataExtractor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ class DataExtractor {
994994
constexpr size_t src_size = sizeof(T);
995995
T val = fail_value;
996996

997-
const T *src = static_cast<const T *>(GetData(offset_ptr, src_size));
997+
const void *src = GetData(offset_ptr, src_size);
998998
if (!src)
999999
return val;
10001000

0 commit comments

Comments
 (0)