[llvm-commits] [llvm] r117083 - /llvm/trunk/lib/System/Win32/Signals.inc
NAKAMURA Takumi
geek4civic at gmail.com
Thu Oct 21 18:23:50 PDT 2010
Author: chapuni
Date: Thu Oct 21 20:23:50 2010
New Revision: 117083
URL: http://llvm.org/viewvc/llvm-project?rev=117083&view=rev
Log:
Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection.
It choked BugPoint on Mingw.
Modified:
llvm/trunk/lib/System/Win32/Signals.inc
Modified: llvm/trunk/lib/System/Win32/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Signals.inc?rev=117083&r1=117082&r2=117083&view=diff
==============================================================================
--- llvm/trunk/lib/System/Win32/Signals.inc (original)
+++ llvm/trunk/lib/System/Win32/Signals.inc Thu Oct 21 20:23:50 2010
@@ -143,6 +143,8 @@
if (FilesToRemove == NULL)
return;
+ RegisterHandler();
+
FilesToRemove->push_back(Filename);
std::vector<sys::Path>::reverse_iterator I =
std::find(FilesToRemove->rbegin(), FilesToRemove->rend(), Filename);
More information about the llvm-commits
mailing list