Added virtual destructor for CodeGen