From f836cd08e5ef07992197e3459b384cb973d14ab7 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 5 Mar 2015 18:26:58 +0000 Subject: [PATCH] Silence -Wmissing-braces warning from clang-cl The first element of STACKFRAME64 is a struct and Clang wants us to put braces around it's initialization. Instead, drop the zero. The result should be the same. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231387 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Signals.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 7a35741a470..455ac95907b 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -383,7 +383,7 @@ void sys::PrintStackTraceOnErrorSignal() { void llvm::sys::PrintStackTrace(FILE *File) { - STACKFRAME64 StackFrame = {0}; + STACKFRAME64 StackFrame = {}; CONTEXT Context = {0}; ::RtlCaptureContext(&Context); #if defined(_M_X64) -- 2.34.1