Skip to content
  1. Jul 08, 2011
  2. Jul 07, 2011
  3. Jul 06, 2011
    • Fariborz Jahanian's avatar
      Some code cleanup of r134522 · c6ba959a
      Fariborz Jahanian authored
      llvm-svn: 134529
      c6ba959a
    • Fariborz Jahanian's avatar
      objc-arc: Support objc_arc_weak_unavailable on those · 1f626d6f
      Fariborz Jahanian authored
      classes which are incompatible with weak references.
      // rdar://9693477
      
      llvm-svn: 134522
      1f626d6f
    • Douglas Gregor's avatar
      Don't try to type-check a copy construction of an exception · 750734c6
      Douglas Gregor authored
      declaration with dependent type. Fixes PR10232 /
      <rdar://problem/9700653>.
      
      llvm-svn: 134515
      750734c6
    • Chandler Carruth's avatar
      Build up statistics about the work done for analysis based warnings. · b4836ea7
      Chandler Carruth authored
      Special detail is added for uninitialized variable analysis as this has
      serious performance problems than need to be tracked.
      
      Computing some of this data is expensive, for example walking the CFG to
      determine its size. To avoid doing that unless the stats data is going
      to be used, we thread a bit into the Sema object to track whether
      detailed stats should be collected or not. This bit is used to avoid
      computations whereever the computations are likely to be more expensive
      than checking the state of the flag. Thus, counters are in some cases
      unconditionally updated, but the more expensive (and less frequent)
      aggregation steps are skipped.
      
      With this patch, we're able to see that for 'gcc.c':
      *** Analysis Based Warnings Stats:
      232 functions analyzed (0 w/o CFGs).
        7151 CFG blocks built.
        30 average CFG blocks per function.
        1167 max CFG blocks per function.
      163 functions analyzed for uninitialiazed variables
        640 variables analyzed.
        3 average variables per function.
        94 max variables per function.
        96409 block visits.
        591 average block visits per function.
        61546 max block visits per function.
      
      And for the reduced testcase in PR10183:
      *** Analysis Based Warnings Stats:
      98 functions analyzed (0 w/o CFGs).
        8526 CFG blocks built.
        87 average CFG blocks per function.
        7277 max CFG blocks per function.
      68 functions analyzed for uninitialiazed variables
        1359 variables analyzed.
        19 average variables per function.
        1196 max variables per function.
        2540494 block visits.
        37360 average block visits per function.
        2536495 max block visits per function.
      
      That last number is the somewhat scary one that indicates the problem in
      PR10183.
      
      llvm-svn: 134494
      b4836ea7
    • Rafael Espindola's avatar
      Use attributes from the definition (if available) when · ba195cff
      Rafael Espindola authored
      instantiating functions.
      
      Fixes PR10272.
      
      llvm-svn: 134491
      ba195cff
    • John McCall's avatar
      When tree-transforming an expression sequence, always flag expanded · 542e7c6f
      John McCall authored
      variadic argument pack expansions as having changed, rather than doing
      it for each changed expansion, which leaves out zero-argument packs
      with catastrophic consequences.
      
      Fixes PR10260.
      
      llvm-svn: 134483
      542e7c6f
    • John McCall's avatar
      Fixed enum types can be complete without actually being valid to use · 21878760
      John McCall authored
      as scope specifiers;  diagnose the attempt, rather than letting it go
      to an assert.  The rest of PR10264.
      
      llvm-svn: 134479
      21878760
    • John McCall's avatar
      Change the driver's logic about Objective-C runtimes: abstract out a · 24fc0dec
      John McCall authored
      structure to hold inferred information, then propagate each invididual
      bit down to -cc1.  Separate the bits of "supports weak" and "has a native
      ARC runtime";  make the latter a CodeGenOption.
      
      The tool chain is still driving this decision, because it's the place that
      has the required deployment target information on Darwin, but at least it's
      better-factored now.
      
      llvm-svn: 134453
      24fc0dec
    • Fariborz Jahanian's avatar
      objc-arc: enforce performSelector rules in rejecting retaining selectors · b7a77362
      Fariborz Jahanian authored
      passed to it, and unknown selectors causing potential leak.
      // rdar://9659270
      
      llvm-svn: 134449
      b7a77362
  4. Jul 05, 2011
  5. Jul 04, 2011
  6. Jul 02, 2011
  7. Jul 01, 2011
Loading