replace RetVoid with Unreachable to fix lint

The function is marked `noreturn`, so it shouldn't return.
This commit is contained in:
Daniel Micay 2013-11-03 01:28:32 -05:00
parent a248e34fc7
commit ddbd89b33e

View File

@ -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];