Skip to content
  1. Nov 16, 2008
  2. Nov 15, 2008
  3. Nov 14, 2008
  4. Nov 13, 2008
    • Douglas Gregor's avatar
      Some cleanup for the implementation of built-in operator · 58e008d2
      Douglas Gregor authored
      candidates. Thanks to Chris for the review!
      
      llvm-svn: 59260
      58e008d2
    • Chris Lattner's avatar
      Fix a couple of suboptimalities in error recovery. · 0046de17
      Chris Lattner authored
      1. In the top level of ParseStatementOrDeclaration, don't eat a } if we
         just parsed a statement if it list there.  Also, don't even bother
         emitting an error about a missing semicolon if the statement had a 
         bug (an rbrace is fine).
      2. In do/while parsing, don't require a 'while' to be present if the do
         body didn't parse.
      
      This allows us to generate a clean diagnostic for this code:
      
      t.c:1:22: error: expected expression
      void foo (void) { do . while (0); }
                           ^
      
      Thanks to Neil for pointing this out.
      
      llvm-svn: 59256
      0046de17
Loading