forked from M-Labs/artiq
1
0
Fork 0

compiler: Consistently use llunit through llvm_ir_generator [nfc]

This commit is contained in:
David Nadlinger 2020-07-25 02:09:13 +01:00
parent 2a2f5c4d58
commit 57e759a1ed
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):
@ -1376,7 +1376,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)