summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-04-24 14:26:27 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-04-24 14:26:27 +0000
commit500f3764285081d17292811d4e9f30140a0cdba4 (patch)
treed603ca2553c6ebc16510b87035398629926570f9 /llvm/lib/Support/Windows
parent1202f36b10c9d2f1e377cf06f130c1a02dc28dfa (diff)
downloadbcm5719-llvm-500f3764285081d17292811d4e9f30140a0cdba4.tar.gz
bcm5719-llvm-500f3764285081d17292811d4e9f30140a0cdba4.zip
Silence clang warning: missing field 'Dr0' initializer.
llvm-svn: 235719
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/Signals.inc3
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;
OpenPOWER on IntegriCloud