summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-10-22 01:23:50 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-10-22 01:23:50 +0000
commit3f688b92a99a2044e12a508a4dfc3a8a8ead4a5b (patch)
tree6fc5143b5c1d5c08d43e02d3b7d74b7f35a9f6b0 /llvm/lib/System
parent041a12fc3159e11a6b97ed6f22d98788aa202d6a (diff)
downloadbcm5719-llvm-3f688b92a99a2044e12a508a4dfc3a8a8ead4a5b.tar.gz
bcm5719-llvm-3f688b92a99a2044e12a508a4dfc3a8a8ead4a5b.zip
Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection.
It choked BugPoint on Mingw. llvm-svn: 117083
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Signals.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Signals.inc b/llvm/lib/System/Win32/Signals.inc
index 4bafe41d311..8f880f7fdf6 100644
--- a/llvm/lib/System/Win32/Signals.inc
+++ b/llvm/lib/System/Win32/Signals.inc
@@ -143,6 +143,8 @@ void sys::DontRemoveFileOnSignal(const sys::Path &Filename) {
if (FilesToRemove == NULL)
return;
+ RegisterHandler();
+
FilesToRemove->push_back(Filename);
std::vector<sys::Path>::reverse_iterator I =
std::find(FilesToRemove->rbegin(), FilesToRemove->rend(), Filename);
OpenPOWER on IntegriCloud