Skip to content

Commit

Permalink
LLVM backend: Fix global variable emitting (29a54ba regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Apr 25, 2014
1 parent 9d4c559 commit a79bbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/ir-llvm.bas
Expand Up @@ -896,7 +896,7 @@ private sub _emitEnd( byval tottime as double )

'' Then the variables
hWriteLine( "" )
symbForEachGlobal( FB_SYMBCLASS_PROC, @hMaybeEmitGlobalVar )
symbForEachGlobal( FB_SYMBCLASS_VAR, @hMaybeEmitGlobalVar )

'' DATA array initializers can reference globals by taking their address,
'' so they must be emitted after the other global declarations.
Expand Down

0 comments on commit a79bbc1

Please sign in to comment.