diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-11-01 08:56:51 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-11-01 08:56:51 +0000 |
| commit | 1bb9aea56bdbac6fa8cb28d18a0b6c9879bee12b (patch) | |
| tree | 5d804dd3b4d10371bed6348c033b8b92706d7f74 /clang/test/CodeGen | |
| parent | 9d5b2d4adc6d3ba29628d23173d4b078ba42d5fd (diff) | |
| download | bcm5719-llvm-1bb9aea56bdbac6fa8cb28d18a0b6c9879bee12b.tar.gz bcm5719-llvm-1bb9aea56bdbac6fa8cb28d18a0b6c9879bee12b.zip | |
[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
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c b/clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c index 3798cccdd53..b847344818c 100644 --- a/clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c +++ b/clang/test/CodeGen/catch-implicit-integer-sign-changes-true-negatives.c @@ -138,3 +138,15 @@ uint32_t unsigned_int_to_uint32(unsigned int src) { uint32_t uint32_to_uint32(uint32_t src) { return src; } + +// "Transparent" Enum. +// ========================================================================== // + +enum a { b = ~2147483647 }; +enum a c(); +void d(int); +void e(); +void e() { + enum a f = c(); + d(f); +} |

