[cfe-commits] r66044 - /cfe/trunk/lib/Parse/ParseStmt.cpp

Chris Lattner sabre at nondot.org
Wed Mar 4 10:24:59 PST 2009


Author: lattner
Date: Wed Mar  4 12:24:58 2009
New Revision: 66044

URL: http://llvm.org/viewvc/llvm-project?rev=66044&view=rev
Log:
fixes suggested by Sebastian!

Modified:
    cfe/trunk/lib/Parse/ParseStmt.cpp

Modified: cfe/trunk/lib/Parse/ParseStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=66044&r1=66043&r2=66044&view=diff

==============================================================================
--- cfe/trunk/lib/Parse/ParseStmt.cpp (original)
+++ cfe/trunk/lib/Parse/ParseStmt.cpp Wed Mar  4 12:24:58 2009
@@ -238,7 +238,7 @@
   //
   // Parsing this naively works, but is both inefficient and can cause us to run
   // out of stack space in our recursive descent parser.  As a special case,
-  // flatten this recursion into an interative loop.  This is complex and gross,
+  // flatten this recursion into an iterative loop.  This is complex and gross,
   // but all the grossness is constrained to ParseCaseStatement (and some
   // wierdness in the actions), so this is just local grossness :).
   
@@ -330,7 +330,7 @@
   Actions.ActOnCaseStmtBody(DeepestParsedCaseStmt, move(SubStmt));
 
   // Return the top level parsed statement tree.
-  return OwningStmtResult(Actions, TopLevelCase.release());
+  return move(TopLevelCase);
 }
 
 /// ParseDefaultStatement





More information about the cfe-commits mailing list