diff --git a/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt b/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt index 47e4af61416..fed76ad9d47 100644 --- a/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt +++ b/translator/src/main/kotlin/org/kotlinnative/translator/BlockCodegen.kt @@ -713,8 +713,10 @@ abstract class BlockCodegen(val state: TranslationState, val variableManager: Va fun addPrimitiveReferenceOperationByName(operator: String, firstOp: LLVMSingleValue, secondNativeOp: LLVMSingleValue): LLVMExpression { val firstNativeOp = codeBuilder.receiveNativeValue(firstOp) return when (operator) { + "||", "or" -> firstNativeOp.type!!.operatorOr(firstNativeOp, secondNativeOp) "xor" -> firstNativeOp.type!!.operatorXor(firstNativeOp, secondNativeOp) + "&&", "and" -> firstNativeOp.type!!.operatorAnd(firstNativeOp, secondNativeOp) "%" -> firstNativeOp.type!!.operatorMod(firstNativeOp, secondNativeOp) "shl" -> {