Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9111)

Issue 6497147: code review 6497147: cmd/gc: add missing conversion from bool to interface i... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by DMorsing
Modified:
11 years, 7 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

cmd/gc: add missing conversion from bool to interface in switches. In switches without an expression, the compiler would not convert the implicit true to an interface, causing codegen errors. Fixes issue 3980.

Patch Set 1 #

Patch Set 2 : diff -r 23b89fb47d66 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 23b89fb47d66 https://code.google.com/p/go/ #

Total comments: 4

Patch Set 4 : diff -r 23b89fb47d66 https://code.google.com/p/go/ #

Patch Set 5 : diff -r d27358d77d44 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M src/cmd/gc/swt.c View 1 3 chunks +7 lines, -0 lines 0 comments Download
M test/switch.go View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 5
DMorsing
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 7 months ago (2012-09-17 18:17:25 UTC) #1
rsc
LGTM Thanks. http://codereview.appspot.com/6497147/diff/4001/src/cmd/gc/swt.c File src/cmd/gc/swt.c (right): http://codereview.appspot.com/6497147/diff/4001/src/cmd/gc/swt.c#newcode464 src/cmd/gc/swt.c:464: snorm: I am not sure what snorm ...
11 years, 7 months ago (2012-09-17 18:51:47 UTC) #2
DMorsing
PTAL http://codereview.appspot.com/6497147/diff/4001/src/cmd/gc/swt.c File src/cmd/gc/swt.c (right): http://codereview.appspot.com/6497147/diff/4001/src/cmd/gc/swt.c#newcode464 src/cmd/gc/swt.c:464: snorm: On 2012/09/17 18:51:48, rsc wrote: > I ...
11 years, 7 months ago (2012-09-17 19:05:47 UTC) #3
rsc
LGTM
11 years, 7 months ago (2012-09-17 19:17:34 UTC) #4
DMorsing
11 years, 7 months ago (2012-09-17 19:29:18 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=0e064ff6123c ***

cmd/gc: add missing conversion from bool to interface in switches.

In switches without an expression, the compiler would not convert the implicit
true to an interface, causing codegen errors.

Fixes issue 3980.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6497147
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b