Fix MSVC "not all control paths return a value" warning. NFC.

This commit is contained in:
Simon Pilgrim 2020-08-11 18:12:29 +01:00
parent 2655bd51d6
commit b9aaf32f46
1 changed files with 1 additions and 0 deletions

View File

@ -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,