diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-02 16:38:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-02 16:38:43 +0000 |
commit | cbb6491d76c7aa81cdf5d3b3a81386129c5e2fce (patch) | |
tree | efa0c55763b34cbc633bc494c2743d1b5d9aaff3 /libgo/runtime/go-assert-interface.c | |
parent | ff2f581b00ac6759f6366c16ef902c935163aa13 (diff) | |
download | gcc-cbb6491d76c7aa81cdf5d3b3a81386129c5e2fce.zip gcc-cbb6491d76c7aa81cdf5d3b3a81386129c5e2fce.tar.gz gcc-cbb6491d76c7aa81cdf5d3b3a81386129c5e2fce.tar.bz2 |
libgo: Update to weekly.2012-02-14 release.
From-SVN: r184798
Diffstat (limited to 'libgo/runtime/go-assert-interface.c')
-rw-r--r-- | libgo/runtime/go-assert-interface.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libgo/runtime/go-assert-interface.c b/libgo/runtime/go-assert-interface.c index 57a092d..94bdaee 100644 --- a/libgo/runtime/go-assert-interface.c +++ b/libgo/runtime/go-assert-interface.c @@ -8,6 +8,7 @@ #include "go-assert.h" #include "go-panic.h" #include "interface.h" +#include "runtime.h" /* This is called by the compiler to implement a type assertion from one interface type to another. This returns the value that should @@ -26,14 +27,8 @@ __go_assert_interface (const struct __go_type_descriptor *lhs_descriptor, /* A type assertion is not permitted with a nil interface. */ - newTypeAssertionError (NULL, - NULL, - lhs_descriptor, - NULL, - NULL, - lhs_descriptor->__reflection, - NULL, - &panic_arg); + runtime_newTypeAssertionError (NULL, NULL, lhs_descriptor->__reflection, + NULL, &panic_arg); __go_panic (panic_arg); } |