aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2015-02-25 20:09:06 +0000
committerBen Langmuir <blangmuir@apple.com>2015-02-25 20:09:06 +0000
commit443aa4b4b0cb7098fdf6ae238ebbbed3f64b4719 (patch)
treeabf52cf459431a6bd388e0ebebd0b3bdcc09f852 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
parentdcc84db2641eaff6efece8502ccc5f3863ef9356 (diff)
downloadllvm-443aa4b4b0cb7098fdf6ae238ebbbed3f64b4719.zip
llvm-443aa4b4b0cb7098fdf6ae238ebbbed3f64b4719.tar.gz
llvm-443aa4b4b0cb7098fdf6ae238ebbbed3f64b4719.tar.bz2
Allow (Object *)kMyGlobalCFObj casts without bridging
Previously we allowed these casts only for constants declared in system headers, which we assume are retain/release-neutral. Now also allow them for constants in user headers, treating them as +0. Practically, this means that we will now allow: id x = (id)kMyGlobalConst; But unlike with system headers we cannot mix them with +1 values: id y = (id)(b ? kMyGlobalConst : [Obj newValAtPlusOne]); // error id z = (id)(b ? kSystemGlobalConst: [Obj newValAtPlusOne]); // OK Thanks to John for suggesting this improvement. llvm-svn: 230534
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
0 files changed, 0 insertions, 0 deletions