Sometimes report_fatal_error is called when there is not a handler function used...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 26 Mar 2015 16:24:38 +0000 (16:24 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Mar 2015 16:24:38 +0000 (16:24 +0000)
commit54b6c4c7095e1d73e3d746564163617fcc6b7fd2
tree39db8e3ed0f8cf334c432ef253c868b6d4904549
parent06a8dfd1ee1b21c2066ea15b0dbe208ca22ccc2c
Sometimes report_fatal_error is called when there is not a handler function used to fail gracefully. In that case, RunInterruptHandlers is called, which attempts to enter a critical section object. Ensure that the critical section is properly initialized so that this code functions properly, and tools like clang-tidy do not crash in Debug builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Signals.inc