mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Silence clang warning: missing field 'Dr0' initializer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235719 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -404,7 +404,8 @@ extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
|
|||||||
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
|
||||||
|
|
||||||
STACKFRAME64 StackFrame = {};
|
STACKFRAME64 StackFrame = {};
|
||||||
CONTEXT Context = {0};
|
CONTEXT Context;
|
||||||
|
memset(&Context, 0, sizeof(Context));
|
||||||
::RtlCaptureContext(&Context);
|
::RtlCaptureContext(&Context);
|
||||||
#if defined(_M_X64)
|
#if defined(_M_X64)
|
||||||
StackFrame.AddrPC.Offset = Context.Rip;
|
StackFrame.AddrPC.Offset = Context.Rip;
|
||||||
|
Reference in New Issue
Block a user