Codegen for TernaryExpression