diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp index 1213484f8c1..4514a9948d4 100644 --- a/lib/Support/CrashRecoveryContext.cpp +++ b/lib/Support/CrashRecoveryContext.cpp @@ -31,7 +31,7 @@ public: CurrentContext.set(this); } ~CrashRecoveryContextImpl() { - CurrentContext.set(0); + CurrentContext.erase(); } void HandleCrash() {