[clang] dc8680e - [CodeGenPGO] Fix shadow variable warning. NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 07:07:17 PST 2020


Author: Simon Pilgrim
Date: 2020-03-02T15:06:34Z
New Revision: dc8680eceb7c992cf1d02f47ad963dca2e287eaf

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

LOG: [CodeGenPGO] Fix shadow variable warning. NFC.

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenPGO.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h
index a3778b549910..dda8c66b6db2 100644
--- a/clang/lib/CodeGen/CodeGenPGO.h
+++ b/clang/lib/CodeGen/CodeGenPGO.h
@@ -40,8 +40,8 @@ class CodeGenPGO {
   uint64_t CurrentRegionCount;
 
 public:
-  CodeGenPGO(CodeGenModule &CGM)
-      : CGM(CGM), FuncNameVar(nullptr), NumValueSites({{0}}),
+  CodeGenPGO(CodeGenModule &CGModule)
+      : CGM(CGModule), FuncNameVar(nullptr), NumValueSites({{0}}),
         NumRegionCounters(0), FunctionHash(0), CurrentRegionCount(0) {}
 
   /// Whether or not we have PGO region data for the current function. This is


        


More information about the cfe-commits mailing list