Commit 0a0582d7 by Ian Lance Taylor

compiler: revise exportdata fix for processing constant types

    
    This patch is an addendum to the fix for issue 34577, which was not
    sufficiently general. During export data processing, when looking at
    the types of constants mentioned in inlinable function bodies, include
    both locally defined constants and constant imported from other
    packages.
    
    Testcase for this bug is in CL 201017.
    
    Fixes golang/go#34852.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/201018

From-SVN: r276976
parent 4a4fc7fe
f71238c0112311e4525a1f4b76d2f80be87d2e62
1e2d98b27701744cf0ec57b19d7fc8f594184b9a
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
......@@ -250,7 +250,7 @@ Collect_export_references::expression(Expression** pexpr)
}
const Named_object* nco = expr->named_constant();
if (nco != 0 && nco->package() == NULL)
if (nco != 0)
{
const Named_constant *nc = nco->const_value();
Type::traverse(nc->type(), this);
......
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