1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-20 02:32:36 +00:00

Working on fixing test errors - 228/350 working.

This commit is contained in:
jespergravgaard 2019-05-08 00:11:33 +02:00
parent 21b3114b58
commit 64a8389e6e

View File

@ -29,7 +29,7 @@ public class PassNAddTypeConversionsNew extends Pass2SsaOptimization {
// Special handling of assigning a pointer from an unsigned word
if((programExpression instanceof ProgramExpressionBinary.ProgramExpressionBinaryAssignmentLValue) && (leftType instanceof SymbolTypePointer) && SymbolType.isInteger(rightType)) {
getLog().append("Adding pointer type conversion cast (" + leftType + ") " + binary.getLeft().toString() + " in " + currentStmt.toString(getProgram(), false));
binary.addLeftCast(leftType, stmtIt, currentBlock.getScope(), getScope());
binary.addRightCast(leftType, stmtIt, currentBlock.getScope(), getScope());
}
if(SymbolType.isInteger(leftType) && SymbolType.isInteger(rightType)) {