summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/ir_builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler_llvm/ir_builder.cc')
-rw-r--r--src/compiler_llvm/ir_builder.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler_llvm/ir_builder.cc b/src/compiler_llvm/ir_builder.cc
index b2c795b9c4..4c432718ac 100644
--- a/src/compiler_llvm/ir_builder.cc
+++ b/src/compiler_llvm/ir_builder.cc
@@ -35,6 +35,10 @@ IRBuilder::IRBuilder(llvm::LLVMContext& context, llvm::Module& module)
CHECK_NE(jobject_struct_type, static_cast<llvm::Type*>(NULL));
jobject_type_ = jobject_struct_type->getPointerTo();
+ // Create JEnv* type
+ llvm::Type* jenv_struct_type = llvm::StructType::create(context, "JEnv");
+ jenv_type_ = jenv_struct_type->getPointerTo();
+
// Load the runtime support function declaration from module
InitRuntimeSupportFuncDecl(module);
}