diff options
| author | bors <bors@rust-lang.org> | 2019-11-28 17:30:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-11-28 17:30:24 +0000 |
| commit | bbb664a99c0188fa756cbbb3a6c4e5d8825c372b (patch) | |
| tree | 494cd4de8851dc0bae103a4f8e9f8293348e4fc3 /src/rustllvm/PassWrapper.cpp | |
| parent | f453d1127d9095cf3c3356655d9e8502ceeb8373 (diff) | |
| parent | f9ed2199ff5a69b88d43949c138042a42ecd98b5 (diff) | |
| download | rust-bbb664a99c0188fa756cbbb3a6c4e5d8825c372b.tar.gz rust-bbb664a99c0188fa756cbbb3a6c4e5d8825c372b.zip | |
Auto merge of #66642 - ecstatic-morse:promotion-in-const, r=eddyb
Create promoted MIR fragments for `const` and `static`s Resolves #65732. The previous strategy of removing `Drop` and `StorageDead` for promoted locals only worked for rvalue lifetime extension and only if no `loop`s were present. This PR applies the approach currently used for `fn` and `const fn`s to `const` and `statics`. This may have some performance impacts. r? @eddyb
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
