[all-commits] [llvm/llvm-project] 351aac: [Sema] Add casting check for fixed to fixed point ...

vabridgers via All-commits all-commits at lists.llvm.org
Fri Aug 7 05:59:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 351aac09854399dfb3abb581ef1762a9cd2e4991
      https://github.com/llvm/llvm-project/commit/351aac09854399dfb3abb581ef1762a9cd2e4991
  Author: Vince Bridgers <vince.a.bridgers at gmail.com>
  Date:   2020-08-07 (Fri, 07 Aug 2020)

  Changed paths:
    M clang/lib/Sema/SemaCast.cpp
    M clang/test/Sema/warn-bad-function-cast.c

  Log Message:
  -----------
  [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




More information about the All-commits mailing list