Update codeGen.cpp

now compileable