about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-12-08 07:23:37 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-12-08 12:23:22 -0800
commit9e0ff773ad5840af78ef0deeebb7da2f503eca32 (patch)
treea8e6e7f86a160227754bb9d16db59b998560675f /src/rustllvm/RustWrapper.cpp
parent8864f2c83ac800881da34c3e835c931c081a8785 (diff)
downloadrust-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