mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Fix covered-switch-default warnings in PassWrapper
(See #39063 for explanation)
This commit is contained in:
@@ -278,10 +278,12 @@ static Optional<Reloc::Model> fromRust(LLVMRustRelocMode RustReloc) {
|
||||
return Reloc::RWPI;
|
||||
case LLVMRustRelocMode::ROPIRWPI:
|
||||
return Reloc::ROPI_RWPI;
|
||||
#endif
|
||||
#else
|
||||
default:
|
||||
llvm_unreachable("Bad RelocModel.");
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
llvm_unreachable("Bad RelocModel.");
|
||||
}
|
||||
|
||||
#if LLVM_RUSTLLVM
|
||||
|
||||
Reference in New Issue
Block a user