Skip to content

Commit 609cc26

Browse files
committed
Ensure virtual call receiver PassMode.
1 parent 7c965e3 commit 609cc26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_codegen_llvm/mir/block.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,8 @@ impl FunctionCx<'a, 'll, 'tcx> {
657657
.get_fn(&bx, meta, &fn_ty));
658658
llargs.push(data_ptr);
659659
continue;
660+
} else {
661+
span_bug!(span, "can't codegen a virtual call on {:?}", op);
660662
}
661663
}
662664

0 commit comments

Comments
 (0)