about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-05 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2020-11-05 00:00:00 +0000
commit6ca43aca1d550855e32f516cf8c89fd9e717d8f7 (patch)
tree8f08febe281946e19a78767b68685caa5614f9ba /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent8c2070121905b66698ebbfb105eab30f3484e602 (diff)
downloadrust-6ca43aca1d550855e32f516cf8c89fd9e717d8f7.tar.gz
rust-6ca43aca1d550855e32f516cf8c89fd9e717d8f7.zip
inliner: Copy unevaluated constants only after successful inlining
Inliner copies the unevaluated constants from the callee body to the
caller at the point where decision to inline is yet to be made. The
constants will be unnecessary if inlining were to fail.

Organize the code moving items from callee to the caller together in one
place to avoid the issue.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions