projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cc706
)
[randstruct] Fix -Wunused-but-set-variable with Clang>=D122271 in -DLLVM_ENABLE_ASSER...
author
Fangrui Song
<i@maskray.me>
Thu, 14 Apr 2022 00:09:30 +0000
(17:09 -0700)
committer
Fangrui Song
<i@maskray.me>
Thu, 14 Apr 2022 00:09:30 +0000
(17:09 -0700)
clang/lib/AST/Randstruct.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Randstruct.cpp
b/clang/lib/AST/Randstruct.cpp
index
f6d7ba1
..
fadc727
100644
(file)
--- 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;
}