Skip to content

Commit bcf26d7

Browse files
committed
LLVMTypeAnalyzer: Fix type mismatch in MultipleWritesBoolToNumber test
1 parent 41b04d8 commit bcf26d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/llvm/type_analyzer/variabletypeafterbranch_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ TEST(LLVMTypeAnalyzer_VariableTypeAfterBranch, MultipleWritesBoolToNumber)
695695

696696
// Second write: number 4.25 (incompatible with Bool pre-loop type)
697697
auto setVar2 = std::make_shared<LLVMInstruction>(LLVMInstruction::Type::WriteVariable, nullptr, false);
698-
LLVMConstantRegister value2(Compiler::StaticType::String, 4.25);
698+
LLVMConstantRegister value2(Compiler::StaticType::Number, 4.25);
699699
setVar2->workVariable = &var;
700700
setVar2->args.push_back({ Compiler::StaticType::Unknown, &value2 });
701701
list.addInstruction(setVar2);

0 commit comments

Comments
 (0)