Skip to content

Commit

Permalink
[llvm-ar] Added llvm_unreachable to quiet -Wreturn-type warnings.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185751 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gottesmm committed Jul 6, 2013
1 parent 429aead commit 2be430d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/llvm-ar/llvm-ar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,8 @@ bool shouldCreateArchive(ArchiveOperation Op) {
case ReplaceOrInsert:
return true;
}

llvm_unreachable("Missing entry in covered switch.");
}

// main - main program for llvm-ar .. see comments in the code
Expand Down

0 comments on commit 2be430d

Please sign in to comment.