diff options
author | Steve Naroff <snaroff@apple.com> | 2007-08-16 21:48:38 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-08-16 21:48:38 +0000 |
commit | e77fd3c15c8c4a2f1225e75d5742b6ad07578913 (patch) | |
tree | f8c543ab445d196603a2b75bf4f0829a4989765a /CodeGen/CodeGenModule.cpp | |
parent | fc4a1601a84d280d7e5c424b77843fdd743beec8 (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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions