diff --git a/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h b/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h index 724f39634297..694d3d8004af 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h @@ -690,9 +690,9 @@ protected: bool isObviouslySafeToFold(MachineInstr &MI, MachineInstr &IntoMI) const; template 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; } };