aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2024-04-10 09:37:01 -0700
committererichkeane <ekeane@nvidia.com>2024-04-10 09:37:01 -0700
commit3d468566eb395995ac54fcf90d3afb9b9f822eb3 (patch)
tree70dd80e033a762e746bcd35e23bc2365f274da4e
parent48c5c70fdd3bec2929e2e903e3bf4494a65f7a92 (diff)
downloadllvm-3d468566eb395995ac54fcf90d3afb9b9f822eb3.zip
llvm-3d468566eb395995ac54fcf90d3afb9b9f822eb3.tar.gz
llvm-3d468566eb395995ac54fcf90d3afb9b9f822eb3.tar.bz2
[NFC] Remove unneeded 'maybe_unused' attributes
This was added while we only had a partial implementation of clauses, so we don't need these anymore.
-rw-r--r--clang/lib/Serialization/ASTReader.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 2e73a0a..0ca7f66 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -11754,11 +11754,8 @@ void ASTRecordReader::readOMPChildren(OMPChildren *Data) {
OpenACCClause *ASTRecordReader::readOpenACCClause() {
OpenACCClauseKind ClauseKind = readEnum<OpenACCClauseKind>();
- // TODO OpenACC: We don't have these used anywhere, but eventually we should
- // be constructing the Clauses with them, so these attributes can go away at
- // that point.
- [[maybe_unused]] SourceLocation BeginLoc = readSourceLocation();
- [[maybe_unused]] SourceLocation EndLoc = readSourceLocation();
+ SourceLocation BeginLoc = readSourceLocation();
+ SourceLocation EndLoc = readSourceLocation();
switch (ClauseKind) {
case OpenACCClauseKind::Default: {