compiler: Consistently use llunit through llvm_ir_generator [nfc]

This commit is contained in:
David Nadlinger 2020-07-25 02:09:13 +01:00 committed by Sebastien Bourdeauducq
parent 5dc3b3b28c
commit 5efeb2fea0
1 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ class LLVMIRGenerator:
if for_return:
return llvoid
else:
return ll.LiteralStructType([])
return llunit
elif types._is_pointer(typ):
return llptr
elif types.is_function(typ):
@ -239,7 +239,7 @@ class LLVMIRGenerator:
if for_return:
return llvoid
else:
return ll.LiteralStructType([])
return llunit
elif builtins.is_bool(typ):
return lli1
elif builtins.is_int(typ):
@ -1357,7 +1357,7 @@ class LLVMIRGenerator:
name="rpc.args")
for index, arg in enumerate(args):
if builtins.is_none(arg.type):
llargslot = self.llbuilder.alloca(ll.LiteralStructType([]),
llargslot = self.llbuilder.alloca(llunit,
name="rpc.arg{}".format(index))
else:
llarg = self.map(arg)