recog: Tweak insn_gen_fn::operator() definition
commit4e49b994de060d4a6c9318d0ed52ef038153426e
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 17 Jun 2020 16:45:29 +0000 (17 17:45 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 17 Jun 2020 16:45:29 +0000 (17 17:45 +0100)
tree967c862c5093961c5e54254cfaa0820e38a530a1
parent914eadfe86a0400e0e378819001c785ecb30aab2
recog: Tweak insn_gen_fn::operator() definition

Fixes a “left operand of comma has no effect” warning that some were
seeing.  Also fixes a spurious ellipsis that Jonathan Wakely pointed
out.

2020-06-17  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* coretypes.h (first_type): New alias template.
* recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
Remove spurious “...” and split the function type out into a typedef.
gcc/coretypes.h
gcc/recog.h