diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-12-08 07:23:37 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-12-08 12:23:22 -0800 |
| commit | 9e0ff773ad5840af78ef0deeebb7da2f503eca32 (patch) | |
| tree | a8e6e7f86a160227754bb9d16db59b998560675f /src/rustllvm/RustWrapper.cpp | |
| parent | 8864f2c83ac800881da34c3e835c931c081a8785 (diff) | |
| download | rust-9e0ff773ad5840af78ef0deeebb7da2f503eca32.tar.gz rust-9e0ff773ad5840af78ef0deeebb7da2f503eca32.zip | |
std: Use mem::replace in TLS initialization
Due to #30228 it's not currently sound to do `*ptr = Some(value)`, so instead use `mem::replace` which fixes the soundness hole for now.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
