-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
A-codegenArea: Code generationArea: Code generationA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
rust/src/librustc_codegen_ssa/mir/block.rs
Lines 127 to 131 in 4abb0ad
if let Some((ret_dest, target)) = destination { | |
let mut ret_bx = fx.build_block(target); | |
fx.set_debug_loc(&mut ret_bx, self.terminator.source_info); | |
fx.store_return(&mut ret_bx, ret_dest, &fn_abi.ret, invokeret); | |
} |
It appends the ret value storage code directly to the destination bb. This means that if two calls have the same destination, the destination bb will contain the ret value storage code for both calls.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.