Message ID | CAOyqgcWK3-AcgzGwOmn+twug=DxoWbxLruucHiccSTyAYiRRdQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | Go patch committed: Panic arguments have empty interface type | expand |
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 9a4b402573a..e13dc5f58a3 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -60f985a7852632834936b4b859aa75d9df88f038 +5f6fae5ff33e996243acd098c71904695c414c53 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/expressions.cc b/gcc/go/gofrontend/expressions.cc index 238d5a56ca2..2b0e40fc6f8 100644 --- a/gcc/go/gofrontend/expressions.cc +++ b/gcc/go/gofrontend/expressions.cc @@ -11137,6 +11137,12 @@ Builtin_call_expression::do_determine_type(Gogo* gogo, is_print = false; break; + case BUILTIN_PANIC: + arg_type = + Type::make_empty_interface_type(Linemap::predeclared_location()); + is_print = false; + break; + case BUILTIN_PRINT: case BUILTIN_PRINTLN: // Do not force a large integer constant to "int".