[NFC][GlobalISel] Fix case of local variable

This commit is contained in:
Vitaly Buka 2023-12-13 14:10:28 -08:00
parent eabf7ec3f3
commit 8bea83b8f5

View File

@ -690,9 +690,9 @@ protected:
bool isObviouslySafeToFold(MachineInstr &MI, MachineInstr &IntoMI) const;
template <typename Ty> static Ty readBytesAs(const uint8_t *MatchTable) {
Ty res;
memcpy(&res, MatchTable, sizeof(res));
return res;
Ty Ret;
memcpy(&Ret, MatchTable, sizeof(Ret));
return Ret;
}
};