Skip to content
  1. Feb 12, 2012
    • Nick Lewycky's avatar
      Don't traverse the PHI nodes twice. No functionality change! · 4231c41c
      Nick Lewycky authored
      llvm-svn: 150319
      4231c41c
    • Sebastian Redl's avatar
      Represent C++ direct initializers as ParenListExprs before semantic analysis · a935179a
      Sebastian Redl authored
      instead of having a special-purpose function.
      
      - ActOnCXXDirectInitializer, which was mostly duplication of
        AddInitializerToDecl (leading e.g. to PR10620, which Eli fixed a few days
        ago), is dropped completely.
      - MultiInitializer, which was an ugly hack I added, is dropped again.
      - We now have the infrastructure in place to distinguish between
        int x = {1};
        int x({1});
        int x{1};
      -- VarDecl now has getInitStyle(), which indicates which of the above was used.
      -- CXXConstructExpr now has a flag to indicate that it represents list-
         initialization, although this is not yet used.
      - InstantiateInitializer was renamed to SubstInitializer and simplified.
      - ActOnParenOrParenListExpr has been replaced by ActOnParenListExpr, which
        always produces a ParenListExpr. Placed that so far failed to convert that
        back to a ParenExpr containing comma operators have been fixed. I'm pretty
        sure I could have made a crashing test case before this.
      
      The end result is a (I hope) considerably cleaner design of initializers.
      More importantly, the fact that I can now distinguish between the various
      initialization kinds means that I can get the tricky generalized initializer
      test cases Johannes Schaub supplied to work. (This is not yet done.)
      
      This commit passed self-host, with the resulting compiler passing the tests. I
      hope it doesn't break more complicated code. It's a pretty big change, but one
      that I feel is necessary.
      
      llvm-svn: 150318
      a935179a
    • Sebastian Redl's avatar
      Drive-by fix of incorrect diagnostic, and a test case for said diagnostic. The... · 46afb551
      Sebastian Redl authored
      Drive-by fix of incorrect diagnostic, and a test case for said diagnostic. The double error is unfortunate, but I really don't see an alternative whose effort is worth it.
      
      llvm-svn: 150317
      46afb551
    • Sebastian Redl's avatar
      Fix parsing new expressions using init lists. Probably still do the wrong... · 82ace98d
      Sebastian Redl authored
      Fix parsing new expressions using init lists. Probably still do the wrong thing in cases involving array new.
      Show that many cases using initializer list constructors work, in that they parse and pass semantic analysis.
      
      llvm-svn: 150316
      82ace98d
    • Anna Zaks's avatar
      [analyzer] Malloc Checker: reduce false negatives rate by assuming that · 41b84847
      Anna Zaks authored
      a pointer cannot escape through calls to system functions. Also, stop
      after reporting the first use-after-free.
      
      llvm-svn: 150315
      41b84847
    • Craig Topper's avatar
      Remove more vector_shuffle patterns. · 330ca977
      Craig Topper authored
      llvm-svn: 150314
      330ca977
  2. Feb 11, 2012
  3. Feb 10, 2012
Loading