-itypes-for-extern
rewrites itype parameters even when they don't need to be changed
#715
Labels
-itypes-for-extern
rewrites itype parameters even when they don't need to be changed
#715
For example:
When converted with
3c -itypes-for-extern
, the function is rewritten even though it hasn't changed.This can break idempotence in some situations:
converts (
3c -itypes-for-extern
) tobut a further pass through 3c gives
A fix should be fairly straight forward. The condition for rewriting with an itype under
-itypes-for-extern
just needs to have asrcHasItype
check. Alternatively, a fix could come via the change suggested by matt here (update: now filed as #740). If the internal constraint solves to WILD, and the special casing in the rewriter is removed, the main itype rewriting logic will correctly notice the existing itype and not rewrite.The text was updated successfully, but these errors were encountered: