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:
cfb9ce5
)
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.
llvm-svn: 231387
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
7a35741
..
455ac95
100644
(file)
--- a/
llvm/lib/Support/Windows/Signals.inc
+++ b/
llvm/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)