From b9aaf32f46494695d1b20c08730c1111536e17f8 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 11 Aug 2020 18:12:29 +0100 Subject: [PATCH] Fix MSVC "not all control paths return a value" warning. NFC. --- clang/lib/Tooling/Transformer/RewriteRule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Tooling/Transformer/RewriteRule.cpp b/clang/lib/Tooling/Transformer/RewriteRule.cpp index 8781bfc66146..89497f67bbb5 100644 --- a/clang/lib/Tooling/Transformer/RewriteRule.cpp +++ b/clang/lib/Tooling/Transformer/RewriteRule.cpp @@ -131,6 +131,7 @@ static std::string formatHeaderPath(StringRef Header, IncludeFormat Format) { case transformer::IncludeFormat::Angled: return ("<" + Header + ">").str(); } + llvm_unreachable("Unknown transformer::IncludeFormat enum"); } ASTEdit transformer::addInclude(RangeSelector Target, StringRef Header,