HerrCai0907 created this revision.
HerrCai0907 added a reviewer: aaron.ballman.
Herald added a project: All.
HerrCai0907 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

fix typo in some comments


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145834

Files:
  clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  clang/lib/Parse/ParseStmt.cpp


Index: clang/lib/Parse/ParseStmt.cpp
===================================================================
--- clang/lib/Parse/ParseStmt.cpp
+++ clang/lib/Parse/ParseStmt.cpp
@@ -1100,7 +1100,7 @@
       ++LookAhead;
     }
     // Then look to see if the next two tokens close the statement expression;
-    // if so, this expression statement is the last statement in a statment
+    // if so, this expression statement is the last statement in a statement
     // expression.
     IsStmtExprResult = GetLookAheadToken(LookAhead).is(tok::r_brace) &&
                        GetLookAheadToken(LookAhead + 1).is(tok::r_paren);
Index: clang/lib/AST/Interp/ByteCodeStmtGen.cpp
===================================================================
--- clang/lib/AST/Interp/ByteCodeStmtGen.cpp
+++ clang/lib/AST/Interp/ByteCodeStmtGen.cpp
@@ -471,7 +471,7 @@
       const Expr *Value = CS->getLHS();
       PrimType ValueT = this->classifyPrim(Value->getType());
 
-      // Compare the case statment's value to the switch condition.
+      // Compare the case statement's value to the switch condition.
       if (!this->emitGetLocal(CondT, CondVar, CS))
         return false;
       if (!this->visit(Value))


Index: clang/lib/Parse/ParseStmt.cpp
===================================================================
--- clang/lib/Parse/ParseStmt.cpp
+++ clang/lib/Parse/ParseStmt.cpp
@@ -1100,7 +1100,7 @@
       ++LookAhead;
     }
     // Then look to see if the next two tokens close the statement expression;
-    // if so, this expression statement is the last statement in a statment
+    // if so, this expression statement is the last statement in a statement
     // expression.
     IsStmtExprResult = GetLookAheadToken(LookAhead).is(tok::r_brace) &&
                        GetLookAheadToken(LookAhead + 1).is(tok::r_paren);
Index: clang/lib/AST/Interp/ByteCodeStmtGen.cpp
===================================================================
--- clang/lib/AST/Interp/ByteCodeStmtGen.cpp
+++ clang/lib/AST/Interp/ByteCodeStmtGen.cpp
@@ -471,7 +471,7 @@
       const Expr *Value = CS->getLHS();
       PrimType ValueT = this->classifyPrim(Value->getType());
 
-      // Compare the case statment's value to the switch condition.
+      // Compare the case statement's value to the switch condition.
       if (!this->emitGetLocal(CondT, CondVar, CS))
         return false;
       if (!this->visit(Value))
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to