r330802 - Fix buildbot problems after rC330794
Bjorn Pettersson via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 25 02:04:13 PDT 2018
Author: bjope
Date: Wed Apr 25 02:04:12 2018
New Revision: 330802
URL: http://llvm.org/viewvc/llvm-project?rev=330802&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Parse/ParseTemplate.cpp
Modified: cfe/trunk/lib/Parse/ParseTemplate.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseTemplate.cpp?rev=330802&r1=330801&r2=330802&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseTemplate.cpp (original)
+++ cfe/trunk/lib/Parse/ParseTemplate.cpp Wed Apr 25 02:04:12 2018
@@ -370,7 +370,8 @@ Parser::ParseConceptDefinition(SourceLoc
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;
More information about the cfe-commits
mailing list