[llvm-commits] [llvm] r67510 - /llvm/trunk/lib/System/Unix/Signals.inc
Chris Lattner
sabre at nondot.org
Sun Mar 22 23:46:20 PDT 2009
Author: lattner
Date: Mon Mar 23 01:46:20 2009
New Revision: 67510
URL: http://llvm.org/viewvc/llvm-project?rev=67510&view=rev
Log:
fix a bug Alexei Svitkine pointed out.
Modified:
llvm/trunk/lib/System/Unix/Signals.inc
Modified: llvm/trunk/lib/System/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Signals.inc?rev=67510&r1=67509&r2=67510&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Signals.inc (original)
+++ llvm/trunk/lib/System/Unix/Signals.inc Mon Mar 23 01:46:20 2009
@@ -93,8 +93,8 @@
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;
}
More information about the llvm-commits
mailing list