Commit eac6011a authored by Shai Szulanski's avatar Shai Szulanski Committed by Facebook GitHub Bot

Initialize value in loadUnaligned

Differential Revision: D29497151

fbshipit-source-id: 64ad1adbd68d10066fc65ddc41e9cff5ef3c6b53
parent 73484b8a
......@@ -350,7 +350,7 @@ inline constexpr T loadUnaligned(const void* p) {
if (kHasUnalignedAccess) {
return static_cast<const Unaligned<T>*>(p)->value;
} else {
T value;
T value{};
memcpy(&value, p, sizeof(T));
return value;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment