Skip to content

Commit

Permalink
[LLHD] Silence unused variable warning, NFC
Browse files Browse the repository at this point in the history
Slap a `maybe_unused` on an unused variable to silence a compiler warning.
There may be a cleaner way to do this with a `resize`/`std::fill` pattern
rather than going the unused route.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge committed Sep 25, 2024
1 parent 687f7fb commit b7e2e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dialect/LLHD/Transforms/DesequentializationPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ class DnfAnalyzer {

void computeTruthTable() {
uint64_t numEntries = 1 << primitives.size();
for (auto _ : primitives)
for (auto _ [[maybe_unused]] : primitives)
truthTable.push_back(APInt(numEntries, 0));

for (uint64_t i = 0; i < numEntries; ++i)
Expand Down

0 comments on commit b7e2e20

Please sign in to comment.