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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330802
91177308-0d34-0410-b5e6-
96231b3b80d8
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;