jit: prevent ICE with type mismatch in gcc_jit_block_add_assignment_op
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jan 2015 19:36:42 +0000 (19:36 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jan 2015 19:36:42 +0000 (19:36 +0000)
commit8eb8256c8c55b5b2d2244cf59a8490a1164ed639
tree91f8600207abbecbd0638e2f11fe8eda9705d731
parent232364e700c961e4c7d594beffc581975ab5bcce
jit: prevent ICE with type mismatch in gcc_jit_block_add_assignment_op

gcc/jit/ChangeLog:
* libgccjit.c (gcc_jit_block_add_assignment_op): Check that the
lvalue and the rvalue are of compatible type.

gcc/testsuite/ChangeLog:
* jit.dg/test-error-mismatching-types-in-assignment-op.c: New
test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219681 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/jit/ChangeLog
gcc/jit/libgccjit.c
gcc/testsuite/ChangeLog