Skip to content

Commit

Permalink
compiler: Verify pointer type's underlying type.
Browse files Browse the repository at this point in the history
    
    Fixes golang/go#11547.
    
    Reviewed-on: https://go-review.googlesource.com/13031


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226598 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
ian committed Aug 4, 2015
1 parent abd26de commit 30aac3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/go/gofrontend/MERGE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
df080adb06f0e423820f3f6b9604b0c1093ff20a
6fb7c3509a4eda7d2403900981b53029d6727037

The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
4 changes: 4 additions & 0 deletions gcc/go/gofrontend/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,10 @@ class Pointer_type : public Type
int
do_traverse(Traverse*);

bool
do_verify()
{ return this->to_type_->verify(); }

bool
do_has_pointer() const
{ return true; }
Expand Down

0 comments on commit 30aac3c

Please sign in to comment.