Skip to content
  1. Aug 05, 2011
  2. Aug 04, 2011
  3. Aug 03, 2011
  4. Aug 02, 2011
    • Chris Lattner's avatar
      disable array bounds overflow warning for cases where an array · f51dae03
      Chris Lattner authored
      has a single element.  This disables the warning in cases where
      there is a clear bug, but this is really rare (who uses arrays
      with one element?) and it also silences a large class of false
      positive issues with C89 code that is using tail padding in structs.
      
      A better version of this patch would detect when an array is in
      a tail position in a struct, but at least patch fixes the huge
      false positives that are hitting postgres and other code.
      
      llvm-svn: 136724
      f51dae03
    • Fariborz Jahanian's avatar
      objective-c rewrite: Fixes rewriting of objective-c collection · c7c346fd
      Fariborz Jahanian authored
      statement inside a block. // rdar://9878420
      
      llvm-svn: 136717
      c7c346fd
    • Douglas Gregor's avatar
      Change the hashing function for DeclContext lookup within an AST file · 3b65ed0a
      Douglas Gregor authored
      by eliminating the type ID from constructor, destructor, and
      conversion function names. There are several reasons for this change:
        - A given type (say, int*) isn't guaranteed to have a single, unique
        type ID within a chain of PCH files. Hence, we could end up hashing
        based on the wrong type ID, causing name lookup to fail.
      
        - The mapping from types back to type IDs required one DenseMap
        entry for every type that was ever deserialized, which was an
        unacceptable cost to support just the name lookup of constructors,
        destructors, and conversion functions. Plus, this mapping could
        never actually work with chained or multiple PCH, based on the first
        bullet.
      
      Once we have eliminated the type from the hash function, these
      problems go away, as does my horrible "reverse type remap" hack, which
      was doomed from the start (see bullet #1 above) and far too
      complicated. 
      
      However, note that removing the type from the hash function means that
      all constructors, destructors, and conversion functions have the same
      hash key, so I've updated the caller to double-check that the
      declarations found have the appropriate name.
      
      llvm-svn: 136708
      3b65ed0a
    • Eli Friedman's avatar
    • Anna Zaks's avatar
      KeychainAPI checker: only check the paths on which the allocator function... · 9ab728bb
      Anna Zaks authored
      KeychainAPI checker: only check the paths on which the allocator function returned noErr. (+ minor cleanup)
      
      llvm-svn: 136694
      9ab728bb
    • Anna Zaks's avatar
      Add a skeleton for the Keychain Services API Checker. Register it as OSX... · 15f496c1
      Anna Zaks authored
      Add a skeleton for the Keychain Services API Checker. Register it as OSX experimental for now. Note, the checker still does not handle tracking of escaped values, taking into account the return value of the allocator functions, nor the actual bug reporting.. 
      
      llvm-svn: 136659
      15f496c1
    • Fariborz Jahanian's avatar
      objective-c: reverse patch for // rdar://9818354 · e1506cbf
      Fariborz Jahanian authored
      llvm-svn: 136658
      e1506cbf
  5. Jul 31, 2011
  6. Jul 30, 2011
Loading