Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
1b19134c
Commit
1b19134c
authored
Jan 27, 2012
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gc: remove extra paranoia from inlining unsafe.Pointer fix.
R=rsc CC=golang-dev
https://golang.org/cl/5569075
parent
cdbed823
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/cmd/gc/subr.c
src/cmd/gc/subr.c
+3
-1
No files found.
src/cmd/gc/subr.c
View file @
1b19134c
...
...
@@ -1149,7 +1149,9 @@ assignop(Type *src, Type *dst, char **why)
if
(
why
!=
nil
)
*
why
=
""
;
if
(
safemode
&&
(
importpkg
==
nil
||
importpkg
==
localpkg
)
&&
src
!=
T
&&
src
->
etype
==
TUNSAFEPTR
)
{
// TODO(rsc,lvd): This behaves poorly in the presence of inlining.
// https://code.google.com/p/go/issues/detail?id=2795
if
(
safemode
&&
importpkg
==
nil
&&
src
!=
T
&&
src
->
etype
==
TUNSAFEPTR
)
{
yyerror
(
"cannot use unsafe.Pointer"
);
errorexit
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment