Skip to content

Commit 6c7c660

Browse files
authored
[flang] Use C-style casts to silence message (NFC) (#131796)
1 parent 45090b3 commit 6c7c660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ std::optional<Object> getBaseObject(const Object &object,
164164
// as the symbol in the input 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.
167+
(void)symRef;
167168
assert(&**symRef == object.sym());
168-
[[maybe_unused]] auto *unused = symRef;
169169
return std::nullopt;
170170
}
171171
} else {

0 commit comments

Comments
 (0)