mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 10:39:35 +08:00
Fix MSVC "not all control paths return a value" warning. NFC.
Add llvm_unreachable after switch statement for TestLanguage enum
This commit is contained in:
@@ -64,6 +64,7 @@ StringRef getFilenameForTesting(TestLanguage Lang) {
|
||||
case Lang_OBJCXX:
|
||||
return "input.mm";
|
||||
}
|
||||
llvm_unreachable("Unhandled TestLanguage enum");
|
||||
}
|
||||
|
||||
} // end namespace clang
|
||||
|
||||
Reference in New Issue
Block a user