Skip to content
Snippets Groups Projects
  1. Feb 11, 2017
  2. Sep 12, 2016
  3. Feb 25, 2015
    • Ben Langmuir's avatar
      Allow (Object *)kMyGlobalCFObj casts without bridging · b378995a
      Ben Langmuir authored
      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.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230534 91177308-0d34-0410-b5e6-96231b3b80d8
      b378995a
  4. Mar 13, 2013
  5. Mar 01, 2013
  6. Feb 22, 2013
  7. Jan 09, 2013
  8. Dec 16, 2012
  9. Dec 13, 2012
Loading