Skip to content

Commit 3ba1e39

Browse files
committed
__unused doesn't work on the linux and windows bots
1 parent 15b1a81 commit 3ba1e39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,8 +1737,10 @@ bool ASTContext::containsAddressDiscriminatedPointerAuth(QualType T) {
17371737
return Existing->second;
17381738

17391739
auto SaveReturn = [this, RD](bool Result) {
1740-
auto __unused[ResultIter, DidAdd] =
1740+
auto [ResultIter, DidAdd] =
17411741
RecordContainsAddressDiscriminatedPointerAuth.try_emplace(RD, Result);
1742+
(void)ResultIter;
1743+
(void)DidAdd;
17421744
assert(DidAdd);
17431745
return Result;
17441746
};

0 commit comments

Comments
 (0)