[llvm-commits] [llvm] r116755 - /llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Daniel Dunbar
daniel at zuster.org
Mon Oct 18 14:55:18 PDT 2010
Author: ddunbar
Date: Mon Oct 18 16:55:18 2010
New Revision: 116755
URL: http://llvm.org/viewvc/llvm-project?rev=116755&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Support/CrashRecoveryContext.cpp
Modified: llvm/trunk/lib/Support/CrashRecoveryContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CrashRecoveryContext.cpp?rev=116755&r1=116754&r2=116755&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CrashRecoveryContext.cpp (original)
+++ llvm/trunk/lib/Support/CrashRecoveryContext.cpp Mon Oct 18 16:55:18 2010
@@ -128,6 +128,9 @@
// 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.
More information about the llvm-commits
mailing list