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

Unified Diff: src/pkg/exp/ssa/interp/value.go

Issue 7392053: code review 7392053: exp/ssa: a number of bug fixes. (Closed)
Patch Set: diff -r 1a366df36e95 https://code.google.com/p/go/ Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/exp/ssa/interp/testdata/coverage.go ('k') | src/pkg/exp/ssa/ssadump.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/exp/ssa/interp/value.go
===================================================================
--- a/src/pkg/exp/ssa/interp/value.go
+++ b/src/pkg/exp/ssa/interp/value.go
@@ -226,10 +226,8 @@
return x == y.(*hashmap)
case map[value]value:
return (x != nil) == (y.(map[value]value) != nil)
- case *ssa.Function:
- return x == y.(*ssa.Function)
- case *closure:
- return x == y.(*closure)
+ case *ssa.Function, *closure:
+ return x == y
case []value:
return (x != nil) == (y.([]value) != nil)
}
« no previous file with comments | « src/pkg/exp/ssa/interp/testdata/coverage.go ('k') | src/pkg/exp/ssa/ssadump.go » ('j') | no next file with comments »

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