Skip to content

Commit c2b66ce

Browse files
authored
[flang][OpenMP] Silence unused-but-set-variable message (NFC) (#130979)
1 parent 4baf1c0 commit c2b66ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ std::optional<Object> getBaseObject(const Object &object,
165165
// e.g. A(i) is represented as {Symbol(A), Designator(ArrayRef(A, i))}.
166166
// Here we have the Symbol(A), which is what we started with.
167167
assert(&**symRef == object.sym());
168+
[[maybe_unused]] auto *unused = symRef;
168169
return std::nullopt;
169170
}
170171
} else {

0 commit comments

Comments
 (0)