Skip to content

Commit 47f694a

Browse files
Update compiler/rustc_codegen_llvm/src/va_arg.rs
Co-authored-by: Jubilee <[email protected]>
1 parent fd76915 commit 47f694a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

compiler/rustc_codegen_llvm/src/va_arg.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,8 @@ fn emit_x86_64_sysv64_va_arg<'ll, 'tcx>(
506506
}
507507
}
508508
}
509-
BackendRepr::SimdVector { .. } => {
510-
unreachable!("panics in the previous match on `backend_repr`")
511-
}
512-
BackendRepr::Memory { .. } => {
513-
unreachable!("early returns in the previous match on `backend_repr`")
514-
}
509+
// Previous match means control flow already escaped
510+
BackendRepr::SimdVector { .. } | BackendRepr::Memory => unreachable!()
515511
};
516512

517513
// AMD64-ABI 3.5.7p5: Step 5. Set:

0 commit comments

Comments
 (0)