diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-06-16 10:53:06 +0200 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-06-16 14:10:52 +0200 |
| commit | cabd0682e9aa406cca2541c3c5d420d100487b04 (patch) | |
| tree | 935b860952a7da4af4df90a65ced89c0e854f9c7 /src/rustllvm/RustWrapper.cpp | |
| parent | 00382a592baa293776b7601155dd50d3ab2c588c (diff) | |
| download | rust-cabd0682e9aa406cca2541c3c5d420d100487b04.tar.gz rust-cabd0682e9aa406cca2541c3c5d420d100487b04.zip | |
Avoid deref/ref cycles for no-op coercions between unsafe pointers
Unlike coercing from reference to unsafe pointer, coercing between two unsafe pointers doesn't need an AutoDerefRef, because there is no region that regionck would need to know about. In unoptimized libcore, this reduces the number of "auto_deref" allocas from 174 to 4.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
