From fbf7e70ef8c308784b7d1f64e4eb6d0f7708a986 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 26 Dec 2017 21:35:08 +0000 Subject: [PATCH] compiler: do not ever emit !tbaa on invoke instructions. --- artiq/compiler/transforms/llvm_ir_generator.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/artiq/compiler/transforms/llvm_ir_generator.py b/artiq/compiler/transforms/llvm_ir_generator.py index db221f264..57d60b429 100644 --- a/artiq/compiler/transforms/llvm_ir_generator.py +++ b/artiq/compiler/transforms/llvm_ir_generator.py @@ -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