[clang][CodeGen] ImplicitIntegerSignChangeSanitizer: actually ignore NOP casts.
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 1 Nov 2018 08:56:51 +0000 (08:56 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 1 Nov 2018 08:56:51 +0000 (08:56 +0000)
commit1bb9aea56bdbac6fa8cb28d18a0b6c9879bee12b
tree5d804dd3b4d10371bed6348c033b8b92706d7f74
parent9d5b2d4adc6d3ba29628d23173d4b078ba42d5fd
[clang][CodeGen] ImplicitIntegerSignChangeSanitizer: actually ignore NOP casts.

I fully expected for that to be handled by the canonical type check,
but it clearly wasn't. Sadly, somehow it hide until now.

Reported by Eli Friedman.

llvm-svn: 345816
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c