Mark blocks that call cold funs as cold (#1021)

This commit is contained in:
Ömer Sinan Ağacan 2020-05-29 12:06:29 +03:00 committed by GitHub
parent bb4cc18cf2
commit acbfa06ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -300,6 +300,7 @@ fn codegen_fn_content(fx: &mut FunctionCx<'_, '_, impl Backend>) {
fx.tcx.sess.time("codegen call", || crate::abi::codegen_terminator_call(
fx,
bb_data.terminator().source_info.span,
block,
func,
args,
*destination,