about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-11-07 01:02:24 +0900
committerGitHub <noreply@github.com>2020-11-07 01:02:24 +0900
commit0a89d7bd7e341e4f2a7de17af765ce24dfecf569 (patch)
tree9df1ed586beb4c1ce542d16925acf2b6ffa5cb61 /compiler/rustc_codegen_llvm/src
parent55bf7911c316f444fbf7042852be062dc93cac1a (diff)
parent6ca43aca1d550855e32f516cf8c89fd9e717d8f7 (diff)
downloadrust-0a89d7bd7e341e4f2a7de17af765ce24dfecf569.tar.gz
rust-0a89d7bd7e341e4f2a7de17af765ce24dfecf569.zip
Rollup merge of #78771 - tmiasko:inline-consts, r=oli-obk
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_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions