diff options
author | John McCall <rjmccall@apple.com> | 2011-09-09 07:56:05 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-09-09 07:56:05 +0000 |
commit | 3323fad09e9f2c280e0dbe767be398203bb0c6ac (patch) | |
tree | 636d75ac87f7db52fe6f6f93e31e6f01ce8965c5 /lib/Sema/JumpDiagnostics.cpp | |
parent | ead363bdd2756efa945108941ab46bbde3bd8bdf (diff) |
Clean up the sentinel-attribute checking code a lot. Document
what 'nullPos' is supposed to mean, at least at this one site.
Use closed forms for the arithmetic. Rip out some clever but
ultimately pointless code that was trying to use 0 or 0L depending
the size of a pointer vs. the size of int; first, it didn't work
on LLP64 systems, and second, the sentinel checking code requires
a pointer-typed value anyway, so this fixit would not have actually
removed the warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/JumpDiagnostics.cpp')
0 files changed, 0 insertions, 0 deletions