diff options
Diffstat (limited to 'src/compiler_llvm/ir_builder.h')
| -rw-r--r-- | src/compiler_llvm/ir_builder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler_llvm/ir_builder.h b/src/compiler_llvm/ir_builder.h index 93a7f19889..a700c69a65 100644 --- a/src/compiler_llvm/ir_builder.h +++ b/src/compiler_llvm/ir_builder.h @@ -105,6 +105,10 @@ class IRBuilder : public LLVMIRBuilder { StoreToObjectOffset(object_addr, offset, new_value, tbaa_.GetSpecialType(special_ty)); } + void SetTBAACall(llvm::CallInst* call_inst, TBAASpecialType special_ty) { + call_inst->setMetadata(llvm::LLVMContext::MD_tbaa, tbaa_.GetSpecialType(special_ty)); + } + //-------------------------------------------------------------------------- // Pointer Arithmetic Helper Function |