Skip to content

Commit fad0fbc

Browse files
authored
[NFC][IR2Vec] Fix warnings on MSVC compilation (llvm#148911)
1 parent c3dde3c commit fad0fbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Analysis/IR2Vec.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ Vocabulary::VocabVector Vocabulary::createDummyVocabForTest(unsigned Dim) {
304304
float DummyVal = 0.1f;
305305
// Create a dummy vocabulary with entries for all opcodes, types, and
306306
// operand
307-
for (unsigned _ : seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +
308-
Vocabulary::MaxOperandKinds)) {
307+
for ([[maybe_unused]] unsigned _ :
308+
seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +
309+
Vocabulary::MaxOperandKinds)) {
309310
DummyVocab.push_back(Embedding(Dim, DummyVal));
310-
DummyVal += 0.1;
311+
DummyVal += 0.1f;
311312
}
312313
return DummyVocab;
313314
}

0 commit comments

Comments
 (0)