提交 33d71944 编写于 作者: B bors

Auto merge of #43732 - kennytm:pass-wrapper-warning, r=arielb1

Fix covered-switch-default warnings in PassWrapper

(See #39063 for explanation)
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册