[llvm] 3c37981 - Fix shadow variable warning with llvm::SrcMgr. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 9 09:05:26 PST 2019


Author: Simon Pilgrim
Date: 2019-11-09T17:03:21Z
New Revision: 3c37981bb3ab1ed1846123299945c7b84de70d28

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

LOG: Fix shadow variable warning with llvm::SrcMgr. NFCI.

Added: 
    

Modified: 
    llvm/lib/TableGen/TGParser.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h
index af2b639f8d59..89799001d574 100644
--- a/llvm/lib/TableGen/TGParser.h
+++ b/llvm/lib/TableGen/TGParser.h
@@ -114,9 +114,9 @@ class TGParser {
   };
 
 public:
-  TGParser(SourceMgr &SrcMgr, ArrayRef<std::string> Macros,
+  TGParser(SourceMgr &SM, ArrayRef<std::string> Macros,
            RecordKeeper &records)
-    : Lex(SrcMgr, Macros), CurMultiClass(nullptr), Records(records) {}
+    : Lex(SM, Macros), CurMultiClass(nullptr), Records(records) {}
 
   /// ParseFile - Main entrypoint for parsing a tblgen file.  These parser
   /// routines return true on error, or false on success.


        


More information about the llvm-commits mailing list