summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Signals.inc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-23 06:46:20 +0000
committerChris Lattner <sabre@nondot.org>2009-03-23 06:46:20 +0000
commitf2b60658ef6b8bb7cb9caa0dbee3a3b1452050b5 (patch)
tree32b9c2b3e2a321f0d7d8a3059e6073b8ef0b830f /llvm/lib/System/Unix/Signals.inc
parentfb9547212315c9fed79db054f1c6e505a4462dd9 (diff)
downloadbcm5719-llvm-f2b60658ef6b8bb7cb9caa0dbee3a3b1452050b5.tar.gz
bcm5719-llvm-f2b60658ef6b8bb7cb9caa0dbee3a3b1452050b5.zip
fix a bug Alexei Svitkine pointed out.
llvm-svn: 67510
Diffstat (limited to 'llvm/lib/System/Unix/Signals.inc')
-rw-r--r--llvm/lib/System/Unix/Signals.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc
index dc3910cae45..be22bd83fc0 100644
--- a/llvm/lib/System/Unix/Signals.inc
+++ b/llvm/lib/System/Unix/Signals.inc
@@ -93,8 +93,8 @@ static void RegisterHandlers() {
static void UnregisterHandlers() {
// Restore all of the signal handlers to how they were before we showed up.
for (unsigned i = 0, e = NumRegisteredSignals; i != e; ++i)
- sigaction(RegisteredSignalInfo[NumRegisteredSignals].SigNo,
- &RegisteredSignalInfo[NumRegisteredSignals].SA, 0);
+ sigaction(RegisteredSignalInfo[i].SigNo,
+ &RegisteredSignalInfo[i].SA, 0);
NumRegisteredSignals = 0;
}
OpenPOWER on IntegriCloud