File tree 3 files changed +5
-7
lines changed
lib/ExecutionEngine/RuntimeDyld
3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ class BinaryStreamReader {
73
73
if (auto EC = readBytes (Bytes, sizeof (T)))
74
74
return EC;
75
75
76
- Dest = llvm::support::endian::read <T, llvm::support::unaligned>(
77
- Bytes.data (), Stream.getEndian ());
76
+ Dest = llvm::support::endian::read <T>(Bytes.data (), Stream.getEndian ());
78
77
return Error::success ();
79
78
}
80
79
Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ class BinaryStreamWriter {
59
59
static_assert (std::is_integral_v<T>,
60
60
" Cannot call writeInteger with non-integral value!" );
61
61
uint8_t Buffer[sizeof (T)];
62
- llvm::support::endian::write <T, llvm::support::unaligned>(
63
- Buffer, Value, Stream.getEndian ());
62
+ llvm::support::endian::write <T>(Buffer, Value, Stream.getEndian ());
64
63
return writeBytes (Buffer);
65
64
}
66
65
Original file line number Diff line number Diff line change @@ -318,17 +318,17 @@ class RuntimeDyldImpl {
318
318
std::string ErrorStr;
319
319
320
320
void writeInt16BE (uint8_t *Addr, uint16_t Value) {
321
- llvm::support::endian::write <uint16_t , llvm::support::unaligned >(
321
+ llvm::support::endian::write <uint16_t >(
322
322
Addr, Value, IsTargetLittleEndian ? support::little : support::big);
323
323
}
324
324
325
325
void writeInt32BE (uint8_t *Addr, uint32_t Value) {
326
- llvm::support::endian::write <uint32_t , llvm::support::unaligned >(
326
+ llvm::support::endian::write <uint32_t >(
327
327
Addr, Value, IsTargetLittleEndian ? support::little : support::big);
328
328
}
329
329
330
330
void writeInt64BE (uint8_t *Addr, uint64_t Value) {
331
- llvm::support::endian::write <uint64_t , llvm::support::unaligned >(
331
+ llvm::support::endian::write <uint64_t >(
332
332
Addr, Value, IsTargetLittleEndian ? support::little : support::big);
333
333
}
334
334
You can’t perform that action at this time.
0 commit comments