Skip to content

Commit 3de01d0

Browse files
authored
Fix bazel build after #144594, mark variable as potentially unused (#144910)
1 parent 5eb24fd commit 3de01d0

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)