Commit 0ba1db74 authored by Robert Griesemer's avatar Robert Griesemer

- fixed missing return issues

R=r
OCL=15168
CL=15168
parent d30c9a4b
......@@ -572,7 +572,7 @@ func (x Integer) cmp (y Integer) int {
case zero(d.val): return 0;
default : return +1;
}
CHECK(false); // unreachable
panic("UNREACHABLE");
}
......
......@@ -348,6 +348,8 @@ func (P *Parser) ParseQualifiedIdent(pos int, ident string) *Globals.Object {
P.Ecart();
return nil;
}
panic("UNREACHABLE");
}
......@@ -412,6 +414,8 @@ func (P *Parser) ParseTypeName() *Globals.Type {
P.Ecart();
return Universe.bad_t;
}
panic("UNREACHABLE");
}
......@@ -1525,6 +1529,7 @@ func (P *Parser) ParseIfStat() *AST.IfStat {
P.CloseScope();
P.Ecart();
return nil;
}
......@@ -1657,7 +1662,7 @@ func (P *Parser) ParseCommClause() {
}
func (P *Parser) ParseRangeStat() bool {
func (P *Parser) ParseRangeStat() {
P.Trace("RangeStat");
P.Expect(Scanner.RANGE);
......@@ -1670,7 +1675,7 @@ func (P *Parser) ParseRangeStat() bool {
}
func (P *Parser) ParseSelectStat() bool {
func (P *Parser) ParseSelectStat() {
P.Trace("SelectStat");
P.Expect(Scanner.SELECT);
......
......@@ -609,6 +609,8 @@ func (S *Scanner) ScanEscape() string {
default:
S.Error(pos, "illegal char escape");
}
return ""; // TODO fix this
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment