From 8bea83b8f5adae8abc5d6a6695c756a616201aa7 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 13 Dec 2023 14:10:28 -0800 Subject: [PATCH] [NFC][GlobalISel] Fix case of local variable --- llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } };