Commit 5c63bac2 by Ian Lance Taylor

Fix uninitialized variable when looking up '_'.

From-SVN: r168158
parent 428f5f5f
......@@ -415,6 +415,9 @@ Gogo::current_block()
Named_object*
Gogo::lookup(const std::string& name, Named_object** pfunction) const
{
if (pfunction != NULL)
*pfunction = NULL;
if (Gogo::is_sink_name(name))
return Named_object::make_sink();
......@@ -431,9 +434,6 @@ Gogo::lookup(const std::string& name, Named_object** pfunction) const
}
}
if (pfunction != NULL)
*pfunction = NULL;
if (this->package_ != NULL)
{
Named_object* ret = this->package_->bindings()->lookup(name);
......
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