Skip to content

Commit

Permalink
dfmc-llvm-linker: Fix raw type references
Browse files Browse the repository at this point in the history
This fixes a problem caused by references to FFI struct types.

* sources/dfmc/llvm-linker/llvm-link-object.dylan
  (emit-extern on <&raw-aggregate-type>): Don't emit anything for
   extern references to virtual objects such as FFI struct types.
  • Loading branch information
housel committed Nov 19, 2018
1 parent 39bee9b commit 618c404
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources/dfmc/llvm-linker/llvm-link-object.dylan
Expand Up @@ -311,3 +311,8 @@ define method emit-indirection-definition
llvm-builder-define-global(back-end, name, global);
end method;

define method emit-extern
(back-end :: <llvm-back-end>, module :: <llvm-module>,
object :: <&raw-aggregate-type>) => ()
// These are virtual objects, no need to emit them
end;

0 comments on commit 618c404

Please sign in to comment.