Commit 59afc29c authored by Xin Zhao's avatar Xin Zhao
Browse files

Use memcpy for structure assignment.

In this patch we replace "=" with memcpy function
when assigning structure content to another struct.
Using "=" in this case is not compatible for llvm
Signed-off-by: Pavan Balaji's avatarPavan Balaji <>
parent 1b30ab19
......@@ -31,7 +31,7 @@ static inline MPIDI_RMA_Lock_entry_t *MPIDI_CH3I_Win_lock_entry_alloc(MPID_Win *
if (new_ptr != NULL) {
new_ptr->next = NULL;
new_ptr->pkt = (*pkt);
MPIU_Memcpy(&(new_ptr->pkt), pkt, sizeof(*pkt));
new_ptr->vc = NULL;
new_ptr->data = NULL;
new_ptr->data_size = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment