Skip to content

Commit

Permalink
Initialize LLVM types from loaded bitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Apr 12, 2011
1 parent cdda279 commit 5029f51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compilers/opsc/src/Ops/JIT.pm
Expand Up @@ -104,6 +104,9 @@ method _init_llvm() {
$!module.read("t/jit/jitted_ops.bc")
// die("Couldn't read t/jit/jitted_ops.bc");

# Copy actual types from loaded module.
LLVM::Type::initialize_from_module($!module);

$!builder := LLVM::Builder.create();

# Shortcuts for types
Expand Down

0 comments on commit 5029f51

Please sign in to comment.