Fix buildbot problems after rC330794

Avoiding
  error: no matching function for call to 'makeArrayRef'
at
  ../tools/clang/lib/Parse/ParseTemplate.cpp:373:17

By using a local C array as input to makeArrayRef.

Not sure if this is the best solution, but it makes the code
compile again.

llvm-svn: 330802
This commit is contained in:
Bjorn Pettersson 2018-04-25 09:04:12 +00:00
parent 773ead2908
commit 3dd22c9898
1 changed files with 2 additions and 1 deletions

View File

@ -370,7 +370,8 @@ Parser::ParseConceptDefinition(SourceLocation ConceptLoc,
if (DSC != DeclSpecContext::DSC_template_param) {
SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch);
} else {
SkipUntil(llvm::makeArrayRef({tok::comma, tok::greater}),
tok::TokenKind Tokens[] = { tok::comma, tok::greater };
SkipUntil(llvm::makeArrayRef(Tokens),
StopAtSemi | StopBeforeMatch);
}
return;