Skip to content

Commit 3770012

Browse files
author
git apple-llvm automerger
committed
Merge commit '8bea83b8f5ad' from llvm.org/main into next
2 parents 999efc1 + 8bea83b commit 3770012

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)