Skip to content

Commit 318e1da

Browse files
committed
auto merge of #10244 : thestinger/rust/abort, r=alexcrichton
The function is marked `noreturn`, so it shouldn't have this.
2 parents 4910b7a + ddbd89b commit 318e1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/intrinsic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
221221
"abort" => {
222222
let llfn = bcx.ccx().intrinsics.get_copy(&("llvm.trap"));
223223
Call(bcx, llfn, [], []);
224-
RetVoid(bcx);
224+
Unreachable(bcx);
225225
}
226226
"size_of" => {
227227
let tp_ty = substs.tys[0];

0 commit comments

Comments
 (0)