mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-23 23:32:55 +00:00
Working on fixing test errors - 228/350 working.
This commit is contained in:
parent
21b3114b58
commit
64a8389e6e
@ -29,7 +29,7 @@ public class PassNAddTypeConversionsNew extends Pass2SsaOptimization {
|
|||||||
// Special handling of assigning a pointer from an unsigned word
|
// Special handling of assigning a pointer from an unsigned word
|
||||||
if((programExpression instanceof ProgramExpressionBinary.ProgramExpressionBinaryAssignmentLValue) && (leftType instanceof SymbolTypePointer) && SymbolType.isInteger(rightType)) {
|
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));
|
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)) {
|
if(SymbolType.isInteger(leftType) && SymbolType.isInteger(rightType)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user