replace RetVoid with Unreachable to fix lint
The function is marked `noreturn`, so it shouldn't return.
This commit is contained in:
parent
a248e34fc7
commit
ddbd89b33e
@ -221,7 +221,7 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
|
||||
"abort" => {
|
||||
let llfn = bcx.ccx().intrinsics.get_copy(&("llvm.trap"));
|
||||
Call(bcx, llfn, [], []);
|
||||
RetVoid(bcx);
|
||||
Unreachable(bcx);
|
||||
}
|
||||
"size_of" => {
|
||||
let tp_ty = substs.tys[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user