]> git.lizzy.rs Git - rust.git/commit
Consistently use LLVM lifetime markers during codegen
authorTomasz Miąsko <tomasz.miasko@gmail.com>
Wed, 13 May 2020 00:00:00 +0000 (00:00 +0000)
committerTomasz Miąsko <tomasz.miasko@gmail.com>
Thu, 14 May 2020 13:23:24 +0000 (15:23 +0200)
commitbbb63d4554b03feee481bc799a04f183abaff1d4
tree9350d4e05c20c9649ba506920b5710976be8afd2
parent23ffeea307c31f0c20ebb5a15d5171e0c414629d
Consistently use LLVM lifetime markers during codegen

Ensure that inliner inserts lifetime markers if they have been emitted during
codegen. Otherwise if allocas from inlined functions are merged together,
lifetime markers from one function might invalidate load & stores performed
by the other one.
src/librustc_codegen_llvm/back/write.rs
src/librustc_codegen_llvm/builder.rs
src/librustc_codegen_llvm/llvm/ffi.rs
src/librustc_codegen_ssa/back/write.rs
src/librustc_session/session.rs
src/rustllvm/PassWrapper.cpp
src/test/ui/sanitize/issue-72154-lifetime-markers.rs [new file with mode: 0644]