mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Ensure virtual call receiver PassMode.
This commit is contained in:
parent
7c965e3e65
commit
609cc26d31
@ -657,6 +657,8 @@ impl FunctionCx<'a, 'll, 'tcx> {
|
||||
.get_fn(&bx, meta, &fn_ty));
|
||||
llargs.push(data_ptr);
|
||||
continue;
|
||||
} else {
|
||||
span_bug!(span, "can't codegen a virtual call on {:?}", op);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user