diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-09-14 03:45:44 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-09-14 03:45:44 +0000 |
commit | ed52163bea1916404119f397e6f99a4b90477f37 (patch) | |
tree | 9e211125ff0ef3b98eea862b4f6ee608402e7012 /gcc/combine.c | |
parent | 09abdb23cd62999602f2dba8783017ebbb096c1f (diff) | |
download | gcc-ed52163bea1916404119f397e6f99a4b90477f37.zip gcc-ed52163bea1916404119f397e6f99a4b90477f37.tar.gz gcc-ed52163bea1916404119f397e6f99a4b90477f37.tar.bz2 |
compiler: fix check for notinheap conversion
A normal pointer may not be converted to a notinheap pointer. We were
erroneously permitting a conversion from a normal pointer to a
notinheap unsafe.Pointer, which is useless since unsafe.Pointer is not
marked notinheap. Correct the test to permit a conversion from
unsafe.Pointer to a notinheap pointer, which is the same test that the
gc compiler uses.
The test case for this is in the 1.9 runtime package.
Reviewed-on: https://go-review.googlesource.com/62731
From-SVN: r252745
Diffstat (limited to 'gcc/combine.c')
0 files changed, 0 insertions, 0 deletions