[PATCH] Add a truncation warning for values under a bitwise or

Jordan Rose jordan_rose at apple.com
Fri Feb 15 18:39:21 PST 2013


  I haven't read the patch to find out if it's relevant, but here's a pretty simple narrowing implicit cast:

  ```void test(int x) {
  	short y = x | 0xf;
  }```

  Scary, huh?

http://llvm-reviews.chandlerc.com/D405



More information about the cfe-commits mailing list