Skip to content

Commit 8890214

Browse files
committed
[Frontend][OpenMP] Rename some variables, NFC
Rename things in a couple of places to make the code a bit clearer.
1 parent 26e0ce0 commit 8890214

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,8 @@ ConstructDecompositionT<C, H>::addClauseSymsToMap(U &&item,
371371
// anything and return false, otherwise return true.
372372
template <typename C, typename H>
373373
bool ConstructDecompositionT<C, H>::applyToUnique(const ClauseTy *node) {
374-
auto unique = detail::find_unique(leafs, [=](const auto &dirInfo) {
375-
return llvm::omp::isAllowedClauseForDirective(dirInfo.id, node->id,
376-
version);
374+
auto unique = detail::find_unique(leafs, [=](const auto &leaf) {
375+
return llvm::omp::isAllowedClauseForDirective(leaf.id, node->id, version);
377376
});
378377

379378
if (unique != leafs.end()) {
@@ -438,8 +437,8 @@ bool ConstructDecompositionT<C, H>::applyToAll(const ClauseTy *node) {
438437
}
439438

440439
template <typename C, typename H>
441-
template <typename Clause>
442-
bool ConstructDecompositionT<C, H>::applyClause(Clause &&clause,
440+
template <typename Specific>
441+
bool ConstructDecompositionT<C, H>::applyClause(Specific &&specific,
443442
const ClauseTy *node) {
444443
// The default behavior is to find the unique directive to which the
445444
// given clause may be applied. If there are no such directives, or

0 commit comments

Comments
 (0)