Fix covered-switch-default warnings in PassWrapper
(See #39063 for explanation)
This commit is contained in:
parent
7c4e1a5036
commit
15e8b0fd3d
1 changed files with 4 additions and 2 deletions
|
@ -278,10 +278,12 @@ static Optional<Reloc::Model> fromRust(LLVMRustRelocMode RustReloc) {
|
||||||
return Reloc::RWPI;
|
return Reloc::RWPI;
|
||||||
case LLVMRustRelocMode::ROPIRWPI:
|
case LLVMRustRelocMode::ROPIRWPI:
|
||||||
return Reloc::ROPI_RWPI;
|
return Reloc::ROPI_RWPI;
|
||||||
#endif
|
#else
|
||||||
default:
|
default:
|
||||||
llvm_unreachable("Bad RelocModel.");
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Bad RelocModel.");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LLVM_RUSTLLVM
|
#if LLVM_RUSTLLVM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue