Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it)
llvm-svn: 148292
This commit is contained in:
@@ -104,8 +104,7 @@ clang_getCompletionChunkKind(CXCompletionString completion_string,
|
||||
return CXCompletionChunk_VerticalSpace;
|
||||
}
|
||||
|
||||
// Should be unreachable, but let's be careful.
|
||||
return CXCompletionChunk_Text;
|
||||
llvm_unreachable("Invalid CompletionKind!");
|
||||
}
|
||||
|
||||
CXString clang_getCompletionChunkText(CXCompletionString completion_string,
|
||||
@@ -182,8 +181,7 @@ clang_getCompletionChunkCompletionString(CXCompletionString completion_string,
|
||||
return (*CCStr)[chunk_number].Optional;
|
||||
}
|
||||
|
||||
// Should be unreachable, but let's be careful.
|
||||
return 0;
|
||||
llvm_unreachable("Invalid CompletionKind!");
|
||||
}
|
||||
|
||||
unsigned clang_getNumCompletionChunks(CXCompletionString completion_string) {
|
||||
|
||||
Reference in New Issue
Block a user