We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3dde3c commit fad0fbcCopy full SHA for fad0fbc
llvm/lib/Analysis/IR2Vec.cpp
@@ -304,10 +304,11 @@ Vocabulary::VocabVector Vocabulary::createDummyVocabForTest(unsigned Dim) {
304
float DummyVal = 0.1f;
305
// Create a dummy vocabulary with entries for all opcodes, types, and
306
// operand
307
- for (unsigned _ : seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +
308
- Vocabulary::MaxOperandKinds)) {
+ for ([[maybe_unused]] unsigned _ :
+ seq(0u, Vocabulary::MaxOpcodes + Vocabulary::MaxTypeIDs +
309
+ Vocabulary::MaxOperandKinds)) {
310
DummyVocab.push_back(Embedding(Dim, DummyVal));
- DummyVal += 0.1;
311
+ DummyVal += 0.1f;
312
}
313
return DummyVocab;
314
0 commit comments