Skip to content

Commit

Permalink
Fix covered-switch-default warnings in PassWrapper
Browse files Browse the repository at this point in the history
(See #39063 for explanation)
  • Loading branch information
kennytm committed Aug 8, 2017
1 parent 7c4e1a5 commit 15e8b0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rustllvm/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15e8b0f

Please sign in to comment.