Commit f6cbd7a
committed
[llvm-profgen] Fix warnings when building without asserts [NFC]
Building without asserts we got:
../tools/llvm-profgen/ProfiledBinary.cpp:627:14: error: unused variable 'Err' [-Werror,-Wunused-variable]
627 | bool Err = MIA->evaluateBranch(Inst, Address, Size, Target);
| ^~~
../tools/llvm-profgen/ProfiledBinary.cpp:1172:14: error: unused variable 'TopProbe' [-Werror,-Wunused-variable]
1172 | auto TopProbe = TopLevelProbes.begin();
| ^~~~~~~~
2 errors generated.
Add [[maybe_unused]] to the variables just used in asserts.1 parent 11b1bd5 commit f6cbd7a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
627 | | - | |
| 627 | + | |
| 628 | + | |
628 | 629 | | |
629 | 630 | | |
630 | 631 | | |
| |||
1169 | 1170 | | |
1170 | 1171 | | |
1171 | 1172 | | |
1172 | | - | |
| 1173 | + | |
1173 | 1174 | | |
1174 | 1175 | | |
1175 | 1176 | | |
| |||
0 commit comments