mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
compiler: fix const str/bytes handling (#1990)
This commit is contained in:
parent
694a3490c6
commit
484c88af24
@ -335,8 +335,8 @@ class LLVMIRGenerator:
|
|||||||
else:
|
else:
|
||||||
value = const.value
|
value = const.value
|
||||||
|
|
||||||
llptr = self.llstr_of_str(const.value, linkage="private", unnamed_addr=True)
|
llptr = self.llstr_of_str(value, linkage="private", unnamed_addr=True)
|
||||||
lllen = ll.Constant(lli32, len(const.value))
|
lllen = ll.Constant(lli32, len(value))
|
||||||
return ll.Constant(llty, (llptr, lllen))
|
return ll.Constant(llty, (llptr, lllen))
|
||||||
else:
|
else:
|
||||||
assert False
|
assert False
|
||||||
|
Loading…
Reference in New Issue
Block a user