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:
9f7c861
)
Silence -Wmissing-braces warning from clang-cl
author
Reid Kleckner
<reid@kleckner.net>
Thu, 5 Mar 2015 18:26:58 +0000
(18:26 +0000)
committer
Reid Kleckner
<reid@kleckner.net>
Thu, 5 Mar 2015 18:26:58 +0000
(18:26 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Signals.inc
b/lib/Support/Windows/Signals.inc
index 7a35741a4702d0664181878b994dc4c0971cbe0a..455ac95907bb321b7ce8efc15387d6671805b748 100644
(file)
--- 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)