[Sema] Fix-up a -Wfloat-conversion diagnostic
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 14 Feb 2019 22:48:01 +0000 (22:48 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 14 Feb 2019 22:48:01 +0000 (22:48 +0000)
commitd5b017d601b483553f314db36c23aa1c11e0bb78
tree0a98cddef95d7b1ea75ee593d2bf82ec03d035be
parent3c76c09ebfa9fd8f55a6faed7792447b81d3b41b
[Sema] Fix-up a -Wfloat-conversion diagnostic

We were warning on valid ObjC property reference exprs, and passing
in the wrong arguments to DiagnoseFloatingImpCast (leading to a badly
worded diagnostic).

rdar://47644670

Differential revision: https://reviews.llvm.org/D58145

llvm-svn: 354074
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/warn-float-conversion.cpp
clang/test/SemaObjC/conversion.m