diff options
author | Russ Cox <rsc@golang.org> | 2010-04-01 22:31:27 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-01 22:31:27 -0700 |
commit | fb96dda6e66ab75e6cbcdfad2575fddd49eb5857 (patch) | |
tree | 285fdef711a90a79f5cabf60b35dfe3b877702a0 /src/cmd/gc/builtin.c.boot | |
parent | c536850d434ae3dd242417175287cd74c47d9063 (diff) | |
download | golang-fb96dda6e66ab75e6cbcdfad2575fddd49eb5857.tar.gz |
runtime: turn run time errors checks into panics
R=ken2, r
CC=golang-dev
http://codereview.appspot.com/871042
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/gc/builtin.c.boot')
-rw-r--r-- | src/cmd/gc/builtin.c.boot | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/gc/builtin.c.boot b/src/cmd/gc/builtin.c.boot index 59a917a9a..94efa412b 100644 --- a/src/cmd/gc/builtin.c.boot +++ b/src/cmd/gc/builtin.c.boot @@ -1,7 +1,8 @@ char *runtimeimport = "package runtime\n" "func \"\".mal (? int32) *any\n" - "func \"\".throwindex ()\n" + "func \"\".panicindex ()\n" + "func \"\".panicslice ()\n" "func \"\".throwreturn ()\n" "func \"\".throwinit ()\n" "func \"\".panic (? interface { })\n" |