jit: prevent ICE with type mismatch in gcc_jit_block_add_assignment_op
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 15 Jan 2015 19:36:42 +0000 (19:36 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 15 Jan 2015 19:36:42 +0000 (19:36 +0000)
commit96a87981994da859c17259d8c4dccb6602476b0e
tree91f8600207abbecbd0638e2f11fe8eda9705d731
parent548c43e724cc6dc360afe75816396c7d5eba38fc
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.

From-SVN: r219681
gcc/jit/ChangeLog
gcc/jit/libgccjit.c
gcc/testsuite/ChangeLog