diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2015-04-24 14:26:27 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2015-04-24 14:26:27 +0000 |
| commit | 500f3764285081d17292811d4e9f30140a0cdba4 (patch) | |
| tree | d603ca2553c6ebc16510b87035398629926570f9 /llvm/lib/Support | |
| parent | 1202f36b10c9d2f1e377cf06f130c1a02dc28dfa (diff) | |
| download | bcm5719-llvm-500f3764285081d17292811d4e9f30140a0cdba4.tar.gz bcm5719-llvm-500f3764285081d17292811d4e9f30140a0cdba4.zip | |
Silence clang warning: missing field 'Dr0' initializer.
llvm-svn: 235719
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Windows/Signals.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index ea6a4cbf572..d6de403f259 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/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; |

