Fix clang-cl warnings in compiler-rt
authorReid Kleckner <rnk@google.com>
Mon, 23 Apr 2018 17:05:47 +0000 (17:05 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 23 Apr 2018 17:05:47 +0000 (17:05 +0000)
commit963aba3452ed99e818a650f34defdd6d579e0361
treebfa231806cc8065c4c6359f9ccd64985b6168583
parent7f31119fb0ca0ed01d2f7603516702d004752b55
Fix clang-cl warnings in compiler-rt

The profile library was missing some includes and was erroneously using
ftruncate. WinASan was using `= {0}` to initialize structs, which
creates -Wmissing-field-initializers and -Wmissing-braces warnings with
clang. Use `= {}` instead, since this is C++.

llvm-svn: 330616
compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
compiler-rt/lib/sanitizer_common/sanitizer_win.cc