diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-10-18 21:55:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-10-18 21:55:18 +0000 |
commit | 418e7046f7dde08fb5eecd3b89d021087d551ac3 (patch) | |
tree | ebdd0417f931c09b977b6f3c1411af1395c25337 /llvm/lib/Support/CrashRecoveryContext.cpp | |
parent | 643c330b914e9c6045138faa3eef10a830a94aab (diff) | |
download | bcm5719-llvm-418e7046f7dde08fb5eecd3b89d021087d551ac3.tar.gz bcm5719-llvm-418e7046f7dde08fb5eecd3b89d021087d551ac3.zip |
CrashRecoveryContext: Add missing return, so that the signal fires after we our
routine is off the stack. Otherwise we show up rather confusingly in the stack
trace.
llvm-svn: 116755
Diffstat (limited to 'llvm/lib/Support/CrashRecoveryContext.cpp')
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 49258ede83c..93af79bc0f5 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -128,6 +128,9 @@ static void CrashRecoverySignalHandler(int Signal) { // This call of Disable isn't thread safe, but it doesn't actually matter. CrashRecoveryContext::Disable(); raise(Signal); + + // The signal will be thrown once the signal mask is restored. + return; } // Unblock the signal we received. |