@@ -345,7 +345,7 @@ export class Flow {
345345 local = parentFunction . addLocal ( type ) ;
346346 } else {
347347 if ( temps && temps . length ) {
348- local = temps . pop ( ) ;
348+ local = temps . pop ( ) ! ;
349349 local . type = type ;
350350 local . flags = CommonFlags . NONE ;
351351 } else {
@@ -404,7 +404,7 @@ export class Flow {
404404 /** Gets the scoped local of the specified name. */
405405 getScopedLocal ( name : string ) : Local | null {
406406 var scopedLocals = this . scopedLocals ;
407- if ( scopedLocals && scopedLocals . has ( name ) ) return scopedLocals . get ( name ) ;
407+ if ( scopedLocals && scopedLocals . has ( name ) ) return scopedLocals . get ( name ) ! ;
408408 return null ;
409409 }
410410
@@ -478,9 +478,9 @@ export class Flow {
478478 lookupLocal ( name : string ) : Local | null {
479479 var current : Flow | null = this ;
480480 var scope : Map < String , Local > | null ;
481- do if ( ( scope = current . scopedLocals ) && ( scope . has ( name ) ) ) return scope . get ( name ) ;
481+ do if ( ( scope = current . scopedLocals ) && ( scope . has ( name ) ) ) return scope . get ( name ) ! ;
482482 while ( current = current . parent ) ;
483- return this . parentFunction . localsByName . get ( name ) ;
483+ return this . parentFunction . localsByName . get ( name ) ! ;
484484 }
485485
486486 /** Looks up the element with the specified name relative to the scope of this flow. */
@@ -868,7 +868,7 @@ export class Flow {
868868 // overflows if the conversion does (globals are wrapped on set)
869869 case ExpressionId . GlobalGet : {
870870 // TODO: this is inefficient because it has to read a string
871- let global = assert ( this . parentFunction . program . elementsByName . get ( assert ( getGlobalGetName ( expr ) ) ) ) ;
871+ let global = assert ( this . parentFunction . program . elementsByName . get ( assert ( getGlobalGetName ( expr ) ) ) ! ) ;
872872 assert ( global . kind == ElementKind . GLOBAL ) ;
873873 return canConversionOverflow ( assert ( ( < Global > global ) . type ) , type ) ;
874874 }
0 commit comments