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

Issue 72920046: code review 72920046: cmd/gc: fix spurious 'not enough arguments to return' error (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by atom
Modified:
11 years, 3 months ago
Reviewers:
rsc
CC:
rsc, iant, golang-codereviews
Visibility:
Public.

Description

cmd/gc: fix spurious 'not enough arguments to return' error Fixes issue 6405

Patch Set 1 #

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

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

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

Total comments: 2

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

Total comments: 2

Patch Set 6 : diff -r c837a5edfd42 https://code.google.com/p/go/ #

Patch Set 7 : diff -r c837a5edfd42 https://code.google.com/p/go/ #

Patch Set 8 : diff -r c837a5edfd42 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -4 lines) Patch
M src/cmd/gc/typecheck.c View 1 2 3 4 5 6 3 chunks +10 lines, -4 lines 0 comments Download
A test/fixedbugs/issue6405.go View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9
atom
Hello rsc@golang.org, iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 3 months ago (2014-03-10 12:34:41 UTC) #1
iant
Can you add a test for this, if there isn't one already?
11 years, 3 months ago (2014-03-10 15:50:34 UTC) #2
atom
On 2014/03/10 15:50:34, iant wrote: > Can you add a test for this, if there ...
11 years, 3 months ago (2014-03-10 17:29:32 UTC) #3
rsc
https://codereview.appspot.com/72920046/diff/60001/src/cmd/gc/typecheck.c File src/cmd/gc/typecheck.c (right): https://codereview.appspot.com/72920046/diff/60001/src/cmd/gc/typecheck.c#newcode2249 src/cmd/gc/typecheck.c:2249: } can you add if(n != nil) n->diag = ...
11 years, 3 months ago (2014-03-13 02:40:30 UTC) #4
atom
https://codereview.appspot.com/72920046/diff/60001/src/cmd/gc/typecheck.c File src/cmd/gc/typecheck.c (right): https://codereview.appspot.com/72920046/diff/60001/src/cmd/gc/typecheck.c#newcode2249 src/cmd/gc/typecheck.c:2249: } On 2014/03/13 02:40:30, rsc wrote: > can you ...
11 years, 3 months ago (2014-03-14 13:47:59 UTC) #5
atom
I also added curly braces to improve readability of if-statements.
11 years, 3 months ago (2014-03-14 13:52:21 UTC) #6
rsc
LGTM without braces https://codereview.appspot.com/72920046/diff/80001/src/cmd/gc/typecheck.c File src/cmd/gc/typecheck.c (right): https://codereview.appspot.com/72920046/diff/80001/src/cmd/gc/typecheck.c#newcode2245 src/cmd/gc/typecheck.c:2245: if(call != N) { i'm sorry ...
11 years, 3 months ago (2014-03-14 14:54:40 UTC) #7
atom
https://codereview.appspot.com/72920046/diff/80001/src/cmd/gc/typecheck.c File src/cmd/gc/typecheck.c (right): https://codereview.appspot.com/72920046/diff/80001/src/cmd/gc/typecheck.c#newcode2245 src/cmd/gc/typecheck.c:2245: if(call != N) { On 2014/03/14 14:54:40, rsc wrote: ...
11 years, 3 months ago (2014-03-14 15:42:10 UTC) #8
atom
11 years, 3 months ago (2014-03-14 15:42:52 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=3ac01afbcafc ***

cmd/gc: fix spurious 'not enough arguments to return' error

Fixes issue 6405

LGTM=rsc
R=rsc, iant
CC=golang-codereviews
https://codereview.appspot.com/72920046
Sign in to reply to this message.

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