Silence clang warning: missing field 'Dr0' initializer.

llvm-svn: 235719
This commit is contained in:
Yaron Keren 2015-04-24 14:26:27 +00:00
parent 1202f36b10
commit 500f376428
1 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,8 @@ extern "C" VOID WINAPI RtlCaptureContext(PCONTEXT ContextRecord);
void llvm::sys::PrintStackTrace(raw_ostream &OS) {
STACKFRAME64 StackFrame = {};
CONTEXT Context = {0};
CONTEXT Context;
memset(&Context, 0, sizeof(Context));
::RtlCaptureContext(&Context);
#if defined(_M_X64)
StackFrame.AddrPC.Offset = Context.Rip;