forked from M-Labs/artiq
1
0
Fork 0

compiler: do not ever emit !tbaa on invoke instructions.

This commit is contained in:
whitequark 2017-12-26 21:35:08 +00:00 committed by Sebastien Bourdeauducq
parent ca48c29a8b
commit fbf7e70ef8
1 changed files with 2 additions and 3 deletions

View File

@ -1448,9 +1448,8 @@ class LLVMIRGenerator:
llcall = self.llbuilder.invoke(llfun, llargs, llnormalblock, llunwindblock,
name=insn.name)
# See the comment in process_Call.
if types.is_c_function(functiontyp) and 'nowrite' in functiontyp.flags:
llcall.set_metadata('tbaa', self.tbaa_nowrite_call)
# The !tbaa metadata is not legal to use with the invoke instruction,
# so unlike process_Call, we do not set it here.
return llcall