mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Tweak CrashRecoveryContext::GetCurrent() to return quickly if 'gCrsahRecoveryEnabled' is false. This avoids us needing to go to thread local storage for
the performance sensitive case where we are compiling code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6325b9700
commit
fb200e30a4
@ -74,6 +74,9 @@ CrashRecoveryContext::~CrashRecoveryContext() {
|
||||
}
|
||||
|
||||
CrashRecoveryContext *CrashRecoveryContext::GetCurrent() {
|
||||
if (!gCrashRecoveryEnabled)
|
||||
return 0;
|
||||
|
||||
const CrashRecoveryContextImpl *CRCI = CurrentContext.get();
|
||||
if (!CRCI)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user