CreateFromArgs takes now an ArrayRef.

See llvm/llvm-project@1fac68b0dc
This commit is contained in:
Vassil Vassilev 2021-09-11 19:53:01 +00:00 committed by jenkins
parent 9a73829827
commit b3196f3644

View File

@ -1393,9 +1393,7 @@ namespace {
return nullptr;
}
clang::CompilerInvocation::CreateFromArgs(*InvocationPtr, CC1Args->data() + 1,
CC1Args->data() + CC1Args->size(),
*Diags);
clang::CompilerInvocation::CreateFromArgs(*InvocationPtr, *CC1Args, *Diags);
// We appreciate the error message about an unknown flag (or do we? if not
// we should switch to a different DiagEngine for parsing the flags).
// But in general we'll happily go on.