Remove unnecessary llvm::formatv() call in TODO(). (#6099)

This commit is contained in:
Boaz Brickner
2025-09-19 09:14:41 +00:00
committed by GitHub
parent 9704dc670e
commit 8cbf289c91
+1 -3
View File
@@ -2088,9 +2088,7 @@ static auto GetOverloadSetAccess(Context& context, SemIR::LocId loc_id,
clang::AccessSpecifier access = overload_set.begin().getAccess();
for (auto it = overload_set.begin() + 1; it != overload_set.end(); ++it) {
if (it.getAccess() != access) {
context.TODO(
loc_id,
llvm::formatv("Unsupported: Overloaded set with mixed access").str());
context.TODO(loc_id, "Unsupported: Overloaded set with mixed access");
return std::nullopt;
}
}