Skip to content

Commit 9dc033b

Browse files
basioli-kgithub-actions[bot]
authored andcommitted
Automerge: Fix bazel build after #144594, mark variable as potentially unused (#144910)
2 parents 8f18dd2 + 3de01d0 commit 9dc033b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/TargetParser/TargetParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ std::optional<llvm::StringMap<bool>> llvm::getCPUDefaultTargetFeatures(
5656
llvm::StringMap<bool> DefaultFeatures;
5757
setImpliedBits(Bits, CPUEntry->Implies.getAsBitset(), ProcFeatures);
5858

59-
unsigned BitSize = Bits.size();
59+
[[maybe_unused]] unsigned BitSize = Bits.size();
6060
for (const BasicSubtargetFeatureKV &FE : ProcFeatures) {
6161
assert(FE.Value < BitSize && "Target Feature is out of range");
6262
if (Bits[FE.Value])

0 commit comments

Comments
 (0)