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

Unified Diff: src/cmd/5g/gsubr.c

Issue 6620064: code review 6620064: cmd/5g: avoid temporary in slice bounds check (Closed)
Patch Set: diff -r 187194a52289 https://go.googlecode.com/hg/ Created 11 years, 5 months 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/cmd/5g/cgen.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/5g/gsubr.c
===================================================================
--- a/src/cmd/5g/gsubr.c
+++ b/src/cmd/5g/gsubr.c
@@ -1103,7 +1103,7 @@
{
Prog *p;
- if(lhs->op != OREGISTER || rhs->op != OREGISTER)
+ if(lhs->op != OREGISTER)
fatal("bad operands to gcmp: %O %O", lhs->op, rhs->op);
p = gins(as, rhs, N);
« no previous file with comments | « src/cmd/5g/cgen.c ('k') | no next file » | no next file with comments »

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