mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
extra return only if needed
This commit is contained in:
parent
6ffd004c2b
commit
19edad4898
@ -176,7 +176,7 @@ public abstract class ModuleWriter implements Closeable {
|
||||
Iterator<CodeInputStream> byteCodes = code.getByteCodes().iterator();
|
||||
while( byteCodes.hasNext() ) {
|
||||
byteCode = byteCodes.next();
|
||||
writeCodeChunk( byteCode, lineNumber = byteCode.getLineNumber(), method.getConstantPool() );
|
||||
endWithReturn = writeCodeChunk( byteCode, lineNumber = byteCode.getLineNumber(), method.getConstantPool() );
|
||||
}
|
||||
branchManager.handle( byteCode, this ); // write the last end operators
|
||||
if( !endWithReturn && returnType != null ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user