projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9204da1
)
compiler: Fix field tracking for references in global initializers.
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 3 Dec 2012 07:21:16 +0000
(07:21 +0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Mon, 3 Dec 2012 07:21:16 +0000
(07:21 +0000)
From-SVN: r194073
gcc/go/gofrontend/expressions.cc
patch
|
blob
|
history
diff --git
a/gcc/go/gofrontend/expressions.cc
b/gcc/go/gofrontend/expressions.cc
index 5fee25650b0636437bb5a1ba5fbba89df4d02cc8..a2a76d9ce3047bf334785cf80ecfd6254d9ba299 100644
(file)
--- a/
gcc/go/gofrontend/expressions.cc
+++ b/
gcc/go/gofrontend/expressions.cc
@@
-10651,7
+10651,8
@@
Field_reference_expression::do_lower(Gogo* gogo, Named_object* function,
// them if they are not referenced. The effect is that the only
// strings, indicating field references, that will wind up in the
// executable will be those for functions that are actually needed.
- function->func_value()->set_in_unique_section();
+ if (function != NULL)
+ function->func_value()->set_in_unique_section();
var->set_in_unique_section();
return this;