summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2012-08-28 15:44:30 +0000
committerHans Wennborg <hans@hanshq.net>2012-08-28 15:44:30 +0000
commitf4ad23292111c918213f59aa0e705253631a63f4 (patch)
tree6d237a82c2bbe2132283b154dcddbbe53beee627 /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent66a37f3aefb9075f057ff6c7ae52aba775627784 (diff)
downloadbcm5719-llvm-f4ad23292111c918213f59aa0e705253631a63f4.tar.gz
bcm5719-llvm-f4ad23292111c918213f59aa0e705253631a63f4.zip
Warn about suspicious implicit conversions from floating point to bool
This warns in two specific situations: 1) For potentially swapped function arguments, e.g. void foo(bool, float); foo(1.7, false); 2) Misplaced brackets around function call arguments, e.g. bool InRange = fabs(a - b < delta); Where the last argument in a function call is implicitly converted from bool to float, and the function returns a float which gets implicitly converted to bool. Patch by Andreas Eckleder! llvm-svn: 162763
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud