projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1202f36
)
Silence clang warning: missing field 'Dr0' initializer.
author
Yaron Keren
<yaron.keren@gmail.com>
Fri, 24 Apr 2015 14:26:27 +0000
(14:26 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Fri, 24 Apr 2015 14:26:27 +0000
(14:26 +0000)
llvm-svn: 235719
llvm/lib/Support/Windows/Signals.inc
patch
|
blob
|
history
diff --git
a/llvm/lib/Support/Windows/Signals.inc
b/llvm/lib/Support/Windows/Signals.inc
index
ea6a4cb
..
d6de403
100644
(file)
--- 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;