Skip to content
  1. Aug 19, 2013
  2. Aug 18, 2013
  3. Aug 17, 2013
  4. Aug 16, 2013
  5. Aug 15, 2013
    • Fariborz Jahanian's avatar
      ObjectiveC migrator. Start annotating CF functions · 84ac1ded
      Fariborz Jahanian authored
      with CF_RETURNS_RETAINED/CF_RETURNS_NOT_RETAINED as
      appropriate.
      
      llvm-svn: 188493
      84ac1ded
    • David Majnemer's avatar
      CodeGen: __uuidof should work even with an incomplete _GUID type · bbecd096
      David Majnemer authored
      Summary:
      We would crash in CodeGen::CodeGenModule::EmitUuidofInitializer
      because our attempt to enter CodeGen::CodeGenModule::EmitConstantValue
      will be foiled: the type of the constant value is incomplete.
      
      Instead, create an unnamed type with the proper layout on all platforms.
      Punt the problem of wrongly defined struct _GUID types to the user.
      (It's impossible because the TU may never get to see the type and thus
      we can't verify that it is suitable.)
      
      This fixes PR16856.
      
      Reviewers: rsmith, rnk, thakis
      
      Reviewed By: rnk
      
      CC: cfe-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1375
      
      llvm-svn: 188481
      bbecd096
    • Fariborz Jahanian's avatar
      Add another test to my last patch (NS_OPTION vs. NS_ENUM) · 313ae700
      Fariborz Jahanian authored
      ObjectiveC migration.
      
      llvm-svn: 188480
      313ae700
    • Fariborz Jahanian's avatar
      ObjectiveC migrator: In deciding NS_OPTION over · be7bc11f
      Fariborz Jahanian authored
      NS_ENUM, at least one power of 2 enumerator 
      must be greater than two.
      
      llvm-svn: 188470
      be7bc11f
    • Jordan Rose's avatar
      [analyzer] If realloc fails on an escaped region, that region doesn't leak. · 2f8b0229
      Jordan Rose authored
      When a region is realloc()ed, MallocChecker records whether it was known
      to be allocated or not. If it is, and the reallocation fails, the original
      region has to be freed. Previously, when an allocated region escaped,
      MallocChecker completely stopped tracking it, so a failed reallocation
      still (correctly) wouldn't require freeing the original region. Recently,
      however, MallocChecker started tracking escaped symbols, so that if it were
      freed we could check that the deallocator matched the allocator. This
      broke the reallocation model for whether or not a symbol was allocated.
      
      Now, MallocChecker will actually check if a symbol is owned, and only
      require freeing after a failed reallocation if it was owned before.
      
      PR16730
      
      llvm-svn: 188468
      2f8b0229
    • Jack Carter's avatar
      [Mips][msa] Added most builtins from add.a to xori · 77dce2f9
      Jack Carter authored
      Includes:
      add.a, adds_a, adds_s, adds_u, addv, addvi, andi.b, asub_[su], ave_[su],
      aver_[su], bclr, bclri, bins[lr], bins[lr]i, bmnzi, bmzi, bneg, bnegi, bset,
      bseti, c(eq|ne), c(eq|ne)i, cl[et]_[su], cl[et]i_[su], copy_[su].[bhw],
      div_[su], dotp_[su], dpadd_[su], dpsub_[su], fadd, fceq, fclass, fcl[et], fcne,
      fdiv, fexp2, ffint_[su], ffql, ffqr, fill, flog2, fmadd, fmax, fmax_a, fmin,
      fmin_a, fmsub, fmul, frint, fseq, fsle, fslt, fsne, fsqr, fsub, ftint_[su],
      ftq, ilvev, ilvl, ilvod, ilvr, ldi, frcp, frsqrt, madd_q, maddr_q, maddv,
      max_[asu], maxi_[su], min_[asu], mini_[su], mod_[su], msub_q, msubr_q, msubv,
      mul_q, mulr_q, mulv, nloc, nlzc, nori, ori, pckev, pckod, pcnt, sat_[su], shf,
      sld, sldi, sll, slli, splat, splati, sr[al], sr[al]i, subs_[su], subv, subvi,
      xori
      
      
      Patch by Daniel Sanders
      
      llvm-svn: 188461
      77dce2f9
    • David Majnemer's avatar
      Add back a test that was removed in r188450 · efd8be31
      David Majnemer authored
      llvm-svn: 188453
      efd8be31
    • Hao Liu's avatar
    • David Majnemer's avatar
      [-cxx-abi microsoft] Mangle member pointers better · 6dda7bb0
      David Majnemer authored
      Summary:
      There were several things going wrong:
      - We mangled in useless qualifiers like "volatile void" return types.
      - We didn't propagate 64-bit pointer markers sufficiently.
      - We mangled qualifiers belonging to the pointee incorrectly.
      
      This fixes PR16844 and PR16848.
      
      Reviewers: rnk, whunt
      
      Reviewed By: rnk
      
      CC: cfe-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1353
      
      llvm-svn: 188450
      6dda7bb0
Loading