Skip to content

Commit f139387

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC.
1 parent 0e87366 commit f139387

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/InstallAPI/DiagnosticBuilderWrappers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,
8181
return DB;
8282
case FileType::Invalid:
8383
case FileType::All:
84-
llvm_unreachable("Unexpected file type for diagnostics.");
84+
break;
8585
}
86+
llvm_unreachable("Unexpected file type for diagnostics.");
8687
}
8788

8889
const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,

0 commit comments

Comments
 (0)