Revert accidentally committed code.

This commit is contained in:
whitequark 2016-11-20 14:32:16 +00:00
parent ad1049d59a
commit cdb29f9caa
1 changed files with 1 additions and 5 deletions

View File

@ -1151,12 +1151,8 @@ class LLVMIRGenerator:
byvals = [i + 1 for i in byvals]
for i in byvals:
llfun.args[i].add_attribute('byval')
flags = insn.target_function().type.flags
if 'nounwind' in flags:
if 'nounwind' in insn.target_function().type.flags:
llfun.attributes.add('nounwind')
if 'nowrite' in flags:
llfun.attributes.add('inaccessiblememonly')
return llfun, list(llargs)