@@ -867,15 +867,15 @@ class OMPDefaultClause : public OMPClause {
867867 SourceLocation LParenLoc;
868868
869869 // / A kind of the 'default' clause.
870- OpenMPDefaultClauseKind Kind = OMPC_DEFAULT_unknown ;
870+ llvm::omp::DefaultKind Kind = llvm::omp::OMP_DEFAULT_unknown ;
871871
872872 // / Start location of the kind in source code.
873873 SourceLocation KindKwLoc;
874874
875875 // / Set kind of the clauses.
876876 // /
877877 // / \param K Argument of clause.
878- void setDefaultKind (OpenMPDefaultClauseKind K) { Kind = K; }
878+ void setDefaultKind (llvm::omp::DefaultKind K) { Kind = K; }
879879
880880 // / Set argument location.
881881 // /
@@ -890,7 +890,7 @@ class OMPDefaultClause : public OMPClause {
890890 // / \param StartLoc Starting location of the clause.
891891 // / \param LParenLoc Location of '('.
892892 // / \param EndLoc Ending location of the clause.
893- OMPDefaultClause (OpenMPDefaultClauseKind A, SourceLocation ALoc,
893+ OMPDefaultClause (llvm::omp::DefaultKind A, SourceLocation ALoc,
894894 SourceLocation StartLoc, SourceLocation LParenLoc,
895895 SourceLocation EndLoc)
896896 : OMPClause(OMPC_default, StartLoc, EndLoc), LParenLoc(LParenLoc),
@@ -907,7 +907,7 @@ class OMPDefaultClause : public OMPClause {
907907 SourceLocation getLParenLoc () const { return LParenLoc; }
908908
909909 // / Returns kind of the clause.
910- OpenMPDefaultClauseKind getDefaultKind () const { return Kind; }
910+ llvm::omp::DefaultKind getDefaultKind () const { return Kind; }
911911
912912 // / Returns location of clause kind.
913913 SourceLocation getDefaultKindKwLoc () const { return KindKwLoc; }
@@ -6682,10 +6682,10 @@ struct OMPTraitInfo {
66826682 llvm::SmallVector<OMPTraitSet, 4 > Sets;
66836683
66846684 bool anyScoreOrCondition (
6685- llvm::function_ref<bool (Expr *&, bool /* IsScore */ )> Cond) {
6686- return llvm::any_of (Sets, [Cond](OMPTraitInfo::OMPTraitSet &Set) {
6685+ const llvm::function_ref<bool (Expr *&, bool /* IsScore */ )> & Cond) {
6686+ return llvm::any_of (Sets, [& Cond](OMPTraitInfo::OMPTraitSet &Set) {
66876687 return llvm::any_of (
6688- Set.Selectors , [Cond](OMPTraitInfo::OMPTraitSelector &Selector) {
6688+ Set.Selectors , [& Cond](OMPTraitInfo::OMPTraitSelector &Selector) {
66896689 return Cond (Selector.ScoreOrCondition ,
66906690 /* IsScore */ Selector.Kind !=
66916691 llvm::omp::TraitSelector::user_condition);
0 commit comments