mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 15:37:52 +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();
|
Iterator<CodeInputStream> byteCodes = code.getByteCodes().iterator();
|
||||||
while( byteCodes.hasNext() ) {
|
while( byteCodes.hasNext() ) {
|
||||||
byteCode = byteCodes.next();
|
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
|
branchManager.handle( byteCode, this ); // write the last end operators
|
||||||
if( !endWithReturn && returnType != null ) {
|
if( !endWithReturn && returnType != null ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user