runtime: Copy runtime_panicstring from master library.
From-SVN: r181830
This commit is contained in:
parent
a592211185
commit
b87974949f
31 changed files with 83 additions and 92 deletions
|
@ -4,8 +4,8 @@
|
|||
Use of this source code is governed by a BSD-style
|
||||
license that can be found in the LICENSE file. */
|
||||
|
||||
#include "runtime.h"
|
||||
#include "go-alloc.h"
|
||||
#include "go-panic.h"
|
||||
#include "go-type.h"
|
||||
#include "interface.h"
|
||||
|
||||
|
@ -23,7 +23,7 @@ NewArray (struct __go_empty_interface type, int n)
|
|||
const struct __go_type_descriptor *descriptor;
|
||||
|
||||
if (((uintptr_t) type.__type_descriptor & reflectFlags) != 0)
|
||||
__go_panic_msg ("invalid interface value");
|
||||
runtime_panicstring ("invalid interface value");
|
||||
|
||||
/* FIXME: We should check __type_descriptor to verify that this is
|
||||
really a type descriptor. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue