Author: HerrCai0907
Date: 2023-03-13T11:51:28-04:00
New Revision: 73f9a0c92377196b4a671d763175ac090e6a4cc2
URL: 
https://github.com/llvm/llvm-project/commit/73f9a0c92377196b4a671d763175ac090e6a4cc2
DIFF: 
https://github.com/llvm/llvm-project/commit/73f9a0c92377196b4a671d763175ac090e6a4cc2.diff

LOG: Fix typo: statment to statement; NFC

Differential Revision: https://reviews.llvm.org/D145834

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/ByteCodeStmtGen.cpp 
b/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
index a4be86c0e0639..c5f87a1c9faac 100644
--- a/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
@@ -471,7 +471,7 @@ bool ByteCodeStmtGen<Emitter>::visitSwitchStmt(const 
SwitchStmt *S) {
       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))

diff  --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 1c8441fafc483..b6b87e356e921 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -1100,7 +1100,7 @@ StmtResult Parser::handleExprStmt(ExprResult E, 
ParsedStmtContext StmtCtx) {
       ++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);


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to