forked from M-Labs/artiq
compiler: do not ever emit !tbaa on invoke instructions.
This commit is contained in:
parent
ca48c29a8b
commit
fbf7e70ef8
|
@ -1448,9 +1448,8 @@ class LLVMIRGenerator:
|
||||||
llcall = self.llbuilder.invoke(llfun, llargs, llnormalblock, llunwindblock,
|
llcall = self.llbuilder.invoke(llfun, llargs, llnormalblock, llunwindblock,
|
||||||
name=insn.name)
|
name=insn.name)
|
||||||
|
|
||||||
# See the comment in process_Call.
|
# The !tbaa metadata is not legal to use with the invoke instruction,
|
||||||
if types.is_c_function(functiontyp) and 'nowrite' in functiontyp.flags:
|
# so unlike process_Call, we do not set it here.
|
||||||
llcall.set_metadata('tbaa', self.tbaa_nowrite_call)
|
|
||||||
|
|
||||||
return llcall
|
return llcall
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue