changeset 68:a37375f10d66

remove unnecessary comments
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 12 Feb 2014 01:06:33 +0900
parents 58d177b06036
children a61c4aaeb4ed
files tools/clang/lib/Parse/ParseStmt.cpp
diffstat 1 files changed, 1 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseStmt.cpp	Wed Feb 12 00:47:11 2014 +0900
+++ b/tools/clang/lib/Parse/ParseStmt.cpp	Wed Feb 12 01:06:33 2014 +0900
@@ -1715,24 +1715,6 @@
     return StmtError();
   }
   
-  /*
-  // don't need return because this code segment caller isn't code segment.
-  if (!Actions.getCurFunctionDecl()->getResultType().getTypePtr()->is__CodeType())
-    return gotoRes;
-  assert((Attrs.empty() || gotoRes.isInvalid() || gotoRes.isUsable()) &&
-         "attributes on empty statement");
-  
-  if (!(Attrs.empty() || gotoRes.isInvalid()))
-    gotoRes = Actions.ProcessStmtAttributes(gotoRes.get(), Attrs.getList(), Attrs.Range);
-  
-  if(gotoRes.isUsable())
-    Stmts.push_back(gotoRes.release());
-  // add return; after goto code segment. 
-  
-  ExprResult R;
-  return Actions.ActOnReturnStmt(gotoLoc, R.take());
-  */
-  
   assert((Attrs.empty() || gotoRes.isInvalid() || gotoRes.isUsable()) &&
 	 "attributes on empty statement");
   if (!(Attrs.empty() || gotoRes.isInvalid()))
@@ -1740,6 +1722,7 @@
   if (gotoRes.isUsable())
     CompoundedStmts.push_back(gotoRes.release());
 
+  // add return; after goto codesegment();
   if (Actions.getCurFunctionDecl()->getResultType().getTypePtr()->is__CodeType()) {
     ExprResult retExpr;
     StmtResult retRes;