Ensure virtual call receiver PassMode.

This commit is contained in:
Masaki Hara 2018-09-26 23:03:56 +09:00
parent 7c965e3e65
commit 609cc26d31

View File

@ -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);
}
}