Skip to content

Commit f0fa871

Browse files
authored
Merge pull request #5336 from benlangmuir/fix-struct-bind
[stable/20220421] Remove use of structured binding in std=c++14
2 parents e722164 + 486e552 commit f0fa871

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,8 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
29722972
Opts.ModuleFiles.push_back(std::string(Val));
29732973
}
29742974
for (const Arg *A : Args.filtered(OPT_fmodule_file_cache_key)) {
2975-
auto [Path, Key] = StringRef(A->getValue()).rsplit('=');
2975+
StringRef Path, Key;
2976+
std::tie(Path, Key) = StringRef(A->getValue()).rsplit('=');
29762977
if (Key.empty() || Path.empty()) {
29772978
Diags.Report(diag::err_module_cache_key_spelling);
29782979
} else {

0 commit comments

Comments
 (0)