mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
MdeModulePkg EbcDxe: Fix CLANG38 build failure
Change structure value assignment with CopyMem() API. Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
dc756baeda
commit
9a7d1adf5d
@ -1,6 +1,6 @@
|
||||
/** @file
|
||||
|
||||
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@ -134,7 +134,10 @@ EbcDebuggerPushCallstackDest (
|
||||
//
|
||||
ASSERT (mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_TRACE_MAX].Type == Type);
|
||||
for (Index = 0; Index < EFI_DEBUGGER_CALLSTACK_MAX; Index++) {
|
||||
mDebuggerPrivate.CallStackEntry[Index] = mDebuggerPrivate.CallStackEntry[Index + 1];
|
||||
CopyMem (&mDebuggerPrivate.CallStackEntry[Index],
|
||||
&mDebuggerPrivate.CallStackEntry[Index + 1],
|
||||
sizeof (mDebuggerPrivate.CallStackEntry[Index])
|
||||
);
|
||||
}
|
||||
mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_CALLSTACK_MAX - 1].DestAddress = DestEntry;
|
||||
mDebuggerPrivate.CallStackEntryCount = EFI_DEBUGGER_CALLSTACK_MAX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user