Commit 5b32f0e6 by Ian Lance Taylor

Don't crash import unsafe if "unsafe" was already defined.

From-SVN: r170389
parent 6042d1dd
......@@ -24,6 +24,13 @@ Gogo::import_unsafe(const std::string& local_name, bool is_local_name_exported,
is_local_name_exported,
"libgo_unsafe",
location, &add_to_globals);
if (package == NULL)
{
gcc_assert(saw_errors());
return;
}
package->set_is_imported();
Bindings* bindings = package->bindings();
......
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