[Sema] Add casting check for fixed to fixed point conversions
authorVince Bridgers <vince.a.bridgers@gmail.com>
Mon, 3 Aug 2020 20:37:59 +0000 (15:37 -0500)
committereinvbri <vince.a.bridgers@ericsson.com>
Fri, 7 Aug 2020 12:58:53 +0000 (07:58 -0500)
commit351aac09854399dfb3abb581ef1762a9cd2e4991
tree951b75965660fc596d1890a7a57942b1bca4d1d4
parent100e1f911c0e80360af2fa676f832a6f2b52c59d
[Sema] Add casting check for fixed to fixed point conversions

This change squelches the warning for a cast from fixed to fixed point
conversions when -Wbad-function-cast is enabled.

Fixes:

cast from function call of type '_Fract' to non-matching type '_Fract'
[-Wbad-function-cast]

Reviewed By: bjope

Differential Revision: https://reviews.llvm.org/D85157
clang/lib/Sema/SemaCast.cpp
clang/test/Sema/warn-bad-function-cast.c