aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-04-13 17:09:30 -0700
committerFangrui Song <i@maskray.me>2022-04-13 17:09:30 -0700
commitc98b601b7fad9500742a9221bd8de4a86d68175e (patch)
tree1ed1be022fd7c38793a6cbb3bc785cd6b77b04f6 /clang/lib
parent34cc706b9664882c6b4564a42d3c108abd043009 (diff)
downloadllvm-c98b601b7fad9500742a9221bd8de4a86d68175e.zip
llvm-c98b601b7fad9500742a9221bd8de4a86d68175e.tar.gz
llvm-c98b601b7fad9500742a9221bd8de4a86d68175e.tar.bz2
[randstruct] Fix -Wunused-but-set-variable with Clang>=D122271 in -DLLVM_ENABLE_ASSERTIONS=off builds
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Randstruct.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/Randstruct.cpp b/clang/lib/AST/Randstruct.cpp
index f6d7ba1..fadc727b 100644
--- a/clang/lib/AST/Randstruct.cpp
+++ b/clang/lib/AST/Randstruct.cpp
@@ -216,6 +216,7 @@ bool randomizeStructureLayout(const ASTContext &Context, StringRef Name,
assert(TotalNumFields == FinalOrdering.size() &&
"Decl count has been altered after Randstruct randomization!");
+ (void)TotalNumFields;
return true;
}