forked from M-Labs/artiq
compiler: Remove provision for unused four-parameter llptr_to_var() form [nfc]
`var_type` was presumably intended to convert to a target type, but wasn't actually acted on in the function body (nor was it used anywhere in the codebase).
This commit is contained in:
parent
f2f7170d20
commit
5d7f22ffa4
@ -719,9 +719,8 @@ class LLVMIRGenerator:
|
|||||||
self.llbuilder.store(lloperand, llfieldptr)
|
self.llbuilder.store(lloperand, llfieldptr)
|
||||||
return llalloc
|
return llalloc
|
||||||
|
|
||||||
def llptr_to_var(self, llenv, env_ty, var_name, var_type=None):
|
def llptr_to_var(self, llenv, env_ty, var_name):
|
||||||
if var_name in env_ty.params and (var_type is None or
|
if var_name in env_ty.params:
|
||||||
env_ty.params[var_name] == var_type):
|
|
||||||
var_index = list(env_ty.params.keys()).index(var_name)
|
var_index = list(env_ty.params.keys()).index(var_name)
|
||||||
return self.llbuilder.gep(llenv, [self.llindex(0), self.llindex(var_index)],
|
return self.llbuilder.gep(llenv, [self.llindex(0), self.llindex(var_index)],
|
||||||
inbounds=True)
|
inbounds=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user