Skip to content

Commit b568942

Browse files
committed
Add support for mixed types in comparison
1 parent f10c765 commit b568942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/internal/llvm/llvmbuildutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ llvm::Value *LLVMBuildUtils::createComparison(LLVMRegister *arg1, LLVMRegister *
10141014
return m_builder.getInt1(false);
10151015
}
10161016

1017-
if (type1 != type2 || type1 == Compiler::StaticType::Unknown || type2 == Compiler::StaticType::Unknown) {
1017+
if (type1 != type2 || !isSingleType(type1) || !isSingleType(type2)) {
10181018
// If the types are different or at least one of them
10191019
// is unknown, we must use value functions
10201020
llvm::Value *value1 = createValue(arg1);

0 commit comments

Comments
 (0)