mirror of https://github.com/m-labs/artiq.git
fix previous commits
This commit is contained in:
parent
dd03fdfd1a
commit
d931967e5c
|
@ -150,8 +150,9 @@ class LLVMIRGenerator:
|
||||||
ll.Constant(lli64, 1)
|
ll.Constant(lli64, 1)
|
||||||
])
|
])
|
||||||
|
|
||||||
assert self.lldatalayout in "eE"
|
data_layout = str(self.lldatalayout)
|
||||||
self.little_endian = self.lldatalayout[0] == "e"
|
assert data_layout[0] in "eE"
|
||||||
|
self.little_endian = data_layout[0] == "e"
|
||||||
|
|
||||||
def needs_sret(self, lltyp, may_be_large=True):
|
def needs_sret(self, lltyp, may_be_large=True):
|
||||||
if isinstance(lltyp, ll.VoidType):
|
if isinstance(lltyp, ll.VoidType):
|
||||||
|
|
Loading…
Reference in New Issue