| commit | 70f05fdfeebd8584dd390c5a1d3d454d4644f936 | [log] [tgz] |
|---|---|---|
| author | Ted Kremenek <kremenek@apple.com> | Wed Jun 15 00:54:52 2011 +0000 |
| committer | Ted Kremenek <kremenek@apple.com> | Wed Jun 15 00:54:52 2011 +0000 |
| tree | 7fa302e52628fe235743723a83d4b474fd080198 | |
| parent | b05f02e95649a757332dc1f86a6bd59ea396cbf6 [diff] |
Sema: show shift result in hexadecimal Change the output for -Wshift-overflow and -Wshift-sign-overflow to an unsigned hexadecimal. It makes more sense for looking at bits than a signed decimal does. Also, change the diagnostic's wording from "overrides" to "sets". This uses a new optional argument in APInt::toString() that adds the '0x' prefix to hexademical numbers. This fixes PR 9651. Patch by nobled@dreamwidth.org! llvm-svn: 133033