summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/ir_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler_llvm/ir_builder.h')
-rw-r--r--src/compiler_llvm/ir_builder.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compiler_llvm/ir_builder.h b/src/compiler_llvm/ir_builder.h
index 4b7642dde4..93a7f19889 100644
--- a/src/compiler_llvm/ir_builder.h
+++ b/src/compiler_llvm/ir_builder.h
@@ -90,10 +90,10 @@ class IRBuilder : public LLVMIRBuilder {
return CreateStore(val, ptr, tbaa_.GetMemoryJType(special_ty, j_ty));
}
- llvm::Value* LoadFromObjectOffset(llvm::Value* object_addr,
- int64_t offset,
- llvm::Type* type,
- TBAASpecialType special_ty) {
+ llvm::LoadInst* LoadFromObjectOffset(llvm::Value* object_addr,
+ int64_t offset,
+ llvm::Type* type,
+ TBAASpecialType special_ty) {
return LoadFromObjectOffset(object_addr, offset, type, tbaa_.GetSpecialType(special_ty));
}
@@ -149,10 +149,10 @@ class IRBuilder : public LLVMIRBuilder {
return CreatePtrDisp(base, total_offset, ret_ty);
}
- llvm::Value* LoadFromObjectOffset(llvm::Value* object_addr,
- int64_t offset,
- llvm::Type* type,
- llvm::MDNode* tbaa_info) {
+ llvm::LoadInst* LoadFromObjectOffset(llvm::Value* object_addr,
+ int64_t offset,
+ llvm::Type* type,
+ llvm::MDNode* tbaa_info) {
// Convert offset to llvm::value
llvm::Value* llvm_offset = getPtrEquivInt(offset);
// Calculate the value's address