diff options
author | JF Bastien <jfb@google.com> | 2018-05-16 04:36:37 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2018-05-16 04:36:37 +0000 |
commit | b8931c1cf4075d9d79ad2ae44dadc3d3d1d29568 (patch) | |
tree | c03e4d9f103e78441c9a9c7c87ecfe5f6d9dc389 /llvm/lib/Support/Windows/Signals.inc | |
parent | 253aa8b099107c1676c6aa89a32f58b46fe80ddc (diff) | |
download | bcm5719-llvm-b8931c1cf4075d9d79ad2ae44dadc3d3d1d29568.tar.gz bcm5719-llvm-b8931c1cf4075d9d79ad2ae44dadc3d3d1d29568.zip |
Revert "Signal handling should be signal-safe"
Some bots don't have double-pointer width compare-and-exchange. Revert for now.q
llvm-svn: 332429
Diffstat (limited to 'llvm/lib/Support/Windows/Signals.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Signals.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index cc225d9824d..959376b52f7 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/lib/Support/Windows/Signals.inc @@ -560,9 +560,8 @@ void llvm::sys::SetInterruptFunction(void (*IF)()) { /// Add a function to be called when a signal is delivered to the process. The /// handler can have a cookie passed to it to identify what instance of the /// handler it is. -void llvm::sys::AddSignalHandler(sys::SignalHandlerCallback FnPtr, - void *Cookie) { - insertSignalHandler(FnPtr, Cookie); +void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { + CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie)); RegisterHandler(); LeaveCriticalSection(&CriticalSection); } |