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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue