Skip to content

Commit

Permalink
Remove invalid assertion back::link::from add_upstream_rust_crates().
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Apr 4, 2019
1 parent e43f99c commit ef648f4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/librustc_codegen_llvm/back/link.rs
Expand Up @@ -1396,10 +1396,6 @@ fn add_upstream_rust_crates(cmd: &mut dyn Linker,

// Same thing as above, but for dynamic crates instead of static crates.
fn add_dynamic_crate(cmd: &mut dyn Linker, sess: &Session, cratepath: &Path) {
// If we're performing LTO, then it should have been previously required
// that all upstream rust dependencies were available in an rlib format.
assert!(!are_upstream_rust_objects_already_included(sess));

// Just need to tell the linker about where the library lives and
// what its name is
let parent = cratepath.parent();
Expand Down

0 comments on commit ef648f4

Please sign in to comment.