[clang] f98718c - Remove leftover unused variable from #128711

Mats Jun Larsen via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 3 14:32:14 PST 2025


Author: Mats Jun Larsen
Date: 2025-03-03T23:32:03+01:00
New Revision: f98718c9a169d90e676f877c5b6761b22f424b73

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

LOG: Remove leftover unused variable from #128711

Added: 
    

Modified: 
    clang/lib/CodeGen/CGOpenMPRuntime.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index cfb7439e43e29..06a652c146fb9 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -1847,7 +1847,6 @@ void CGOpenMPRuntime::emitParallelCall(CodeGenFunction &CGF, SourceLocation Loc,
   auto &&ThenGen = [&M, OutlinedFn, CapturedVars, RTLoc,
                     this](CodeGenFunction &CGF, PrePostActionTy &) {
     // Build call __kmpc_fork_call(loc, n, microtask, var1, .., varn);
-    CGOpenMPRuntime &RT = CGF.CGM.getOpenMPRuntime();
     llvm::Value *Args[] = {
         RTLoc,
         CGF.Builder.getInt32(CapturedVars.size()), // Number of captured vars


        


More information about the cfe-commits mailing list