From bedcd1f1661f1f4f0176260b0521e3a32e1d42f2 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 24 Apr 2015 14:26:27 +0000 Subject: [PATCH] Silence clang warning: missing field 'Dr0' initializer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235719 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Signals.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1