projects
/
platform
/
upstream
/
gcc48.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 4.8.1
[platform/upstream/gcc48.git]
/
libgo
/
go
/
go
/
ast
/
import.go
diff --git
a/libgo/go/go/ast/import.go
b/libgo/go/go/ast/import.go
index
2d4f69a
..
a68a484
100644
(file)
--- a/
libgo/go/go/ast/import.go
+++ b/
libgo/go/go/ast/import.go
@@
-20,7
+20,7
@@
func SortImports(fset *token.FileSet, f *File) {
break
}
- if
d.Lparen == token.NoPos
{
+ if
!d.Lparen.IsValid()
{
// Not a block: sorted by default.
continue
}