summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Support/CrashRecoveryContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp
index 1213484f8c1..4514a9948d4 100644
--- a/llvm/lib/Support/CrashRecoveryContext.cpp
+++ b/llvm/lib/Support/CrashRecoveryContext.cpp
@@ -31,7 +31,7 @@ public:
CurrentContext.set(this);
}
~CrashRecoveryContextImpl() {
- CurrentContext.set(0);
+ CurrentContext.erase();
}
void HandleCrash() {
OpenPOWER on IntegriCloud