Skip to content

Commit 67be4fe

Browse files
committed
Fix MSVC implicit double -> float truncation warning. NFC.
1 parent 3cc200f commit 67be4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ class FunctionPropertiesAnalysisTest : public testing::Test {
6969
"labelTy", "tokenTy", "metadataTy", "unknownTy", "function",
7070
"pointer", "constant", "variable", "getelementptr", "invoke",
7171
"landingpad", "resume", "catch", "cleanup"};
72-
float EmbVal = 0.1;
72+
float EmbVal = 0.1f;
7373

7474
// Helper lambda to add entries to the vocabulary
7575
auto addEntry = [&](std::string key) {
7676
Vocabulary[key] = ir2vec::Embedding(Dim, EmbVal);
77-
EmbVal += 0.1;
77+
EmbVal += 0.1f;
7878
};
7979

8080
for (auto &Name : SampleEntities)

0 commit comments

Comments
 (0)