Author: David Pagan
Date: 2026-05-26T06:30:13-07:00
New Revision: 3eb9aacb7c47ac15085c4bfced48de9bcee912a3

URL: 
https://github.com/llvm/llvm-project/commit/3eb9aacb7c47ac15085c4bfced48de9bcee912a3
DIFF: 
https://github.com/llvm/llvm-project/commit/3eb9aacb7c47ac15085c4bfced48de9bcee912a3.diff

LOG: [clang][CodeGen][NFC] Fixed typos in comments. (#197052)

Added: 
    

Modified: 
    clang/lib/CodeGen/CGOpenMPRuntime.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp 
b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 60bfe3e9d43f7..9548efbeb72cf 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -11293,7 +11293,7 @@ bool CGOpenMPRuntime::emitTargetFunctions(GlobalDecl 
GD) {
       return true;
   }
 
-  // Do not to emit function if it is not marked as declare target.
+  // Do not emit function if it is not marked as declare target.
   return !OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(VD) &&
          AlreadyEmittedTargetDecls.count(VD) == 0;
 }
@@ -11323,7 +11323,7 @@ bool 
CGOpenMPRuntime::emitTargetGlobalVariable(GlobalDecl GD) {
     }
   }
 
-  // Do not to emit variable if it is not marked as declare target.
+  // Do not emit variable if it is not marked as declare target.
   std::optional<OMPDeclareTargetDeclAttr::MapTypeTy> Res =
       OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(
           cast<VarDecl>(GD.getDecl()));
@@ -11503,7 +11503,7 @@ bool CGOpenMPRuntime::markAsGlobalTarget(GlobalDecl GD) 
{
     return true;
 
   const auto *D = cast<FunctionDecl>(GD.getDecl());
-  // Do not to emit function if it is marked as declare target as it was 
already
+  // Do not emit function if it is marked as declare target as it was already
   // emitted.
   if (OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(D)) {
     if (D->hasBody() && AlreadyEmittedTargetDecls.count(D) == 0) {


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to