aboutsummaryrefslogtreecommitdiff
path: root/gcc/jit/libgccjit.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-08-09 21:24:00 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-08-09 21:24:00 +0000
commit19eec7ac5f73e7fc9eee97438bd5cbdcd07072c2 (patch)
tree4a33dc3570b0216cf7209e5e31a7f9bdb1f8a647 /gcc/jit/libgccjit.c
parentcc6a467f450424a14bfc71d03e83b3981f4fc864 (diff)
downloadgcc-19eec7ac5f73e7fc9eee97438bd5cbdcd07072c2.zip
gcc-19eec7ac5f73e7fc9eee97438bd5cbdcd07072c2.tar.gz
gcc-19eec7ac5f73e7fc9eee97438bd5cbdcd07072c2.tar.bz2
compiler: fix buglet in lshift type determination
It's possible to construct an lshift expression using unsafe.Sizeof that is technically a compile-time constant but can't be evaluated without going through backend methods. In this case, insure that Type::make_non_abstract_type is called on the numeric operand of the shift (as opposed to leaving as abstract), to avoid an assert later on in the compiler flow. Fixes golang/go#21372. Reviewed-on: https://go-review.googlesource.com/54370 From-SVN: r251006
Diffstat (limited to 'gcc/jit/libgccjit.c')
0 files changed, 0 insertions, 0 deletions