From cdb29f9caae6297c3950ed1ea039045a1a43ec60 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 20 Nov 2016 14:32:16 +0000 Subject: [PATCH] Revert accidentally committed code. --- artiq/compiler/transforms/llvm_ir_generator.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index d1dac2810..0a41479b8 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -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)