Skip to content

Commit 8bea83b

Browse files
committed
[NFC][GlobalISel] Fix case of local variable
1 parent eabf7ec commit 8bea83b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ class GIMatchTableExecutor {
690690
bool isObviouslySafeToFold(MachineInstr &MI, MachineInstr &IntoMI) const;
691691

692692
template <typename Ty> static Ty readBytesAs(const uint8_t *MatchTable) {
693-
Ty res;
694-
memcpy(&res, MatchTable, sizeof(res));
695-
return res;
693+
Ty Ret;
694+
memcpy(&Ret, MatchTable, sizeof(Ret));
695+
return Ret;
696696
}
697697
};
698698

0 commit comments

Comments
 (0)