diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-27 17:32:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-27 17:32:27 +0000 |
commit | df435456846445e0939197af4bc19e813d6ef8c4 (patch) | |
tree | a9157005996753b6ed651f4ecc7a1578dcb953da /gcc/go | |
parent | f7a3a38227958558985f5f7109c3ed1dbf26832c (diff) | |
download | gcc-df435456846445e0939197af4bc19e813d6ef8c4.zip gcc-df435456846445e0939197af4bc19e813d6ef8c4.tar.gz gcc-df435456846445e0939197af4bc19e813d6ef8c4.tar.bz2 |
compiler: fix brace formatting
Just happened to notice this one.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/197698
From-SVN: r276186
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/gofrontend/MERGE | 2 | ||||
-rw-r--r-- | gcc/go/gofrontend/types.cc | 13 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 330c458..574d33d 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -d81ff42c367cce2110ccf5ddbadb6cc9bdf94e28 +d1fa6c34e56eade6fb5b6291f0a727b1a12bf6f1 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/types.cc b/gcc/go/gofrontend/types.cc index 0ada841..eeae9fa4 100644 --- a/gcc/go/gofrontend/types.cc +++ b/gcc/go/gofrontend/types.cc @@ -965,12 +965,13 @@ Type::get_backend(Gogo* gogo) if (this->btype_ != NULL) return this->btype_; - if (this->named_type() != NULL && this->named_type()->is_alias()) { - Btype* bt = this->unalias()->get_backend(gogo); - if (gogo != NULL && gogo->named_types_are_converted()) - this->btype_ = bt; - return bt; - } + if (this->named_type() != NULL && this->named_type()->is_alias()) + { + Btype* bt = this->unalias()->get_backend(gogo); + if (gogo != NULL && gogo->named_types_are_converted()) + this->btype_ = bt; + return bt; + } if (this->forward_declaration_type() != NULL || this->named_type() != NULL) |