diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-26 00:41:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-26 00:41:39 +0000 |
commit | a56f7460baf475151e03b1249a1343349328e39c (patch) | |
tree | 2db3102706c90d07a7d4c09a97bb80eaa408e460 /lib/CodeGen/CodeGenModule.h | |
parent | eb4b7051a596560ef4a1846e3714707f44e9dc30 (diff) |
In incompatible pointer-typed ?: expressions, add implicit conversion
of RHSs to id type instead of void* if either has Objective-C object
type.
- This ensures the result can still be used in normal places an
object can be used, like a message send.
Add implicit conversions for ?: applied to qualified id types to
ensure that the RHSs are compatible.
- This prevents a codegen crash (creating invalid PHI nodes).
- Again, this relates to the fact that qualified id types have no
canonical types.
- Note that the implicit type casted to is incorrect, however this
doesn't currently cause problems because of the flexibility of the
id type.
Test cases for above.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions