projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f50af8b
)
Win32/Signals.inc: DontRemoveFileOnSignal(): Please acquire the CriticalSection.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 22 Oct 2010 01:23:50 +0000
(
01:23
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Fri, 22 Oct 2010 01:23:50 +0000
(
01:23
+0000)
It choked BugPoint on Mingw.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117083
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Win32/Signals.inc
patch
|
blob
|
history
diff --git
a/lib/System/Win32/Signals.inc
b/lib/System/Win32/Signals.inc
index 4bafe41d311e3709445a35957604dc6f8247fe84..8f880f7fdf66ce10c9c84133eab5134b1d642c2b 100644
(file)
--- a/
lib/System/Win32/Signals.inc
+++ b/
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);