fix a bug Alexei Svitkine pointed out.

llvm-svn: 67510
This commit is contained in:
Chris Lattner 2009-03-23 06:46:20 +00:00
parent fb95472123
commit f2b60658ef
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}