File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6027,7 +6027,7 @@ export class Compiler extends DiagnosticEmitter {
6027
6027
this . currentType = tee ? global . type : Type . void ;
6028
6028
return module . unreachable ( ) ;
6029
6029
}
6030
- return this . makeGlobalAssignment ( global , valueExpr , global . type , tee ) ;
6030
+ return this . makeGlobalAssignment ( global , valueExpr , valueType , tee ) ;
6031
6031
}
6032
6032
case ElementKind . FIELD : {
6033
6033
let fieldInstance = < Field > target ;
@@ -9164,7 +9164,8 @@ export class Compiler extends DiagnosticEmitter {
9164
9164
// return this
9165
9165
// }
9166
9166
var allocExpr = this . makeAllocation ( classInstance ) ;
9167
- if ( classInstance . type . isManaged ) allocExpr = this . makeRetain ( allocExpr , classInstance . type ) ;
9167
+ let classType = classInstance . type ;
9168
+ if ( classType . isManaged ) allocExpr = this . makeRetain ( allocExpr , classType ) ;
9168
9169
stmts . push (
9169
9170
module . if (
9170
9171
module . unary ( nativeSizeType == NativeType . I64 ? UnaryOp . EqzI64 : UnaryOp . EqzI32 ,
You can’t perform that action at this time.
0 commit comments