| commit | cdee44c12a3f5a381eeb06e5ac0c65f1dfe273aa | [log] [tgz] |
|---|---|---|
| author | Steve Naroff <snaroff@apple.com> | Thu Aug 16 21:48:38 2007 +0000 |
| committer | Steve Naroff <snaroff@apple.com> | Thu Aug 16 21:48:38 2007 +0000 |
| tree | f8f9ebae1a5cd29d28030270fe9db84b8cb0a05a | |
| parent | 5f208bea912ff362e699d87240dfb0eb1c244501 [diff] |
Fixed Sema::CheckEqualityOperands() and Sema::CheckRelationalOperands() to deal more thoughtfully with incompatible pointers. This includes: - Emit a diagnostic when two pointers aren't compatible! - Promote one of the pointers/integers so we maintain the invariant expected by the code generator (i.e. that the left/right types match). - Upgrade the pointer/integer comparison diagnostic to include the types. llvm-svn: 41127