projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7739394
)
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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235719
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/Signals.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Signals.inc
b/lib/Support/Windows/Signals.inc
index ea6a4cbf5724e943517fb007f341ba3a40f8a125..d6de403f259cda49c73dc21c022ebb53000960c5 100644
(file)
--- 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;