From: Yaron Keren Date: Fri, 24 Apr 2015 14:26:27 +0000 (+0000) Subject: Silence clang warning: missing field 'Dr0' initializer. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bedcd1f1661f1f4f0176260b0521e3a32e1d42f2;p=oota-llvm.git Silence clang warning: missing field 'Dr0' initializer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235719 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index ea6a4cbf572..d6de403f259 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -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;