diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 00:56:18 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 11:40:30 -0700 |
| commit | 324418f32bd0d82f20dd79327dff1e3c78b719d2 (patch) | |
| tree | 32af46820e6ba813c1c6c7211075099745fc25c2 /src/rustllvm/PassWrapper.cpp | |
| parent | 753547963340cb973210ad2df5590c29bf46ddf1 (diff) | |
| download | rust-324418f32bd0d82f20dd79327dff1e3c78b719d2.tar.gz rust-324418f32bd0d82f20dd79327dff1e3c78b719d2.zip | |
Don't die in try_unsafe_borrow if tls isn't ready
If there's no TLS key just yet, then there's nothing to unsafely borrow, so continue returning None. This prevents causing the runtime to abort itself when logging before the runtime is fully initialized. Closes #9487
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
