Skip to content

Commit

Permalink
Auto merge of #43732 - kennytm:pass-wrapper-warning, r=arielb1
Browse files Browse the repository at this point in the history
Fix covered-switch-default warnings in PassWrapper

(See #39063 for explanation)
  • Loading branch information
bors committed Aug 9, 2017
2 parents b2bf163 + 15e8b0f commit 33d7194
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 33d7194

Please sign in to comment.