mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 03:03:27 +00:00
transform: do not track const globals
This commit is contained in:
+1
-1
@@ -271,7 +271,7 @@ func AddGlobalsBitmap(mod llvm.Module) bool {
|
||||
var trackedGlobals []llvm.Value
|
||||
var trackedGlobalTypes []llvm.Type
|
||||
for global := mod.FirstGlobal(); !global.IsNil(); global = llvm.NextGlobal(global) {
|
||||
if global.IsDeclaration() {
|
||||
if global.IsDeclaration() || global.IsGlobalConstant() {
|
||||
continue
|
||||
}
|
||||
typ := global.Type().ElementType()
|
||||
|
||||
Reference in New Issue
Block a user