This means we shouldn't emit ubsan detection code or warn.
Fixes PR25552.
Details
Details
- Reviewers
- aaron.ballman - jmolloy - davide 
Diff Detail
Diff Detail
Event Timeline
| test/CodeGen/wrapv-lshr-sanitize.c | ||
|---|---|---|
| 2 | Do you really need instnamer? | |
| test/Sema/negative-shift-wrapv.c | ||
| 10 | It's a bit weird to have the test function be dead code, but I don't see a big problem anyway. Do you need to do the whole WORD_BIT thing? I'd rather just shift -1 by 1 (which is already UB in non -fwrapv world, but defined in -fwrapv world). | |
Do you really need instnamer?