to_master: formatting fix
(cherry picked from commit f7b1ce10f84371bc9f00e91c1f1fb7ed56df9a87)
This commit is contained in:
committed by
Vasily Levchenko
parent
c99baeaf5d
commit
59fff52e0c
+3
-3
@@ -352,8 +352,8 @@ internal class CodeGeneratorVisitor(val context: Context) : IrElementVisitorVoid
|
||||
true -> return LLVMConstInt(LLVMInt1Type(), 1, 1)
|
||||
false -> return LLVMConstInt(LLVMInt1Type(), 0, 1)
|
||||
}
|
||||
IrConstKind.Char -> return LLVMConstInt(LLVMInt16Type(), (value.value as Char).toLong(), 0)
|
||||
IrConstKind.Byte -> return LLVMConstInt(LLVMInt32Type(), (value.value as Byte).toLong(), 1)
|
||||
IrConstKind.Char -> return LLVMConstInt(LLVMInt16Type(), (value.value as Char).toLong(), 0)
|
||||
IrConstKind.Byte -> return LLVMConstInt(LLVMInt32Type(), (value.value as Byte).toLong(), 1)
|
||||
IrConstKind.Short -> return LLVMConstInt(LLVMInt32Type(), (value.value as Short).toLong(), 1)
|
||||
IrConstKind.Int -> return LLVMConstInt(LLVMInt32Type(), (value.value as Int).toLong(), 1)
|
||||
IrConstKind.Long -> return LLVMConstInt(LLVMInt64Type(), value.value as Long, 1)
|
||||
@@ -398,7 +398,7 @@ internal class CodeGeneratorVisitor(val context: Context) : IrElementVisitorVoid
|
||||
private fun evaluateFunctionCall(tmpVariableName: String, callee: IrCall, args: MutableList<LLVMOpaqueValue?>): LLVMOpaqueValue? {
|
||||
val descriptor:FunctionDescriptor = callee.descriptor as FunctionDescriptor
|
||||
when (descriptor) {
|
||||
is IrBuiltinOperatorDescriptorBase -> return evaluateOperatorCall (tmpVariableName, callee, args)
|
||||
is IrBuiltinOperatorDescriptorBase -> return evaluateOperatorCall (tmpVariableName, callee, args)
|
||||
is ClassConstructorDescriptor -> return evaluateConstructorCall (tmpVariableName, callee, args)
|
||||
else -> return evaluateSimpleFunctionCall(tmpVariableName, descriptor, args)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user