[llvm] 171849c - [Orc] Rename local variable to avoid confusion with equally-named class member (NFC)

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 2 06:08:17 PST 2021


Author: Stefan Gränitz
Date: 2021-03-02T15:07:35+01:00
New Revision: 171849c2881bc11c82173588596cca8f539ef81d

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

LOG: [Orc] Rename local variable to avoid confusion with equally-named class member (NFC)

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index fb6d87a51402..8e5aa865cc3a 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -1023,18 +1023,18 @@ LLJIT::createObjectLinkingLayer(LLJITBuilderState &S, ExecutionSession &ES) {
   // Otherwise default to creating an RTDyldObjectLinkingLayer that constructs
   // a new SectionMemoryManager for each object.
   auto GetMemMgr = []() { return std::make_unique<SectionMemoryManager>(); };
-  auto ObjLinkingLayer =
+  auto Layer =
       std::make_unique<RTDyldObjectLinkingLayer>(ES, std::move(GetMemMgr));
 
   if (S.JTMB->getTargetTriple().isOSBinFormatCOFF()) {
-    ObjLinkingLayer->setOverrideObjectFlagsWithResponsibilityFlags(true);
-    ObjLinkingLayer->setAutoClaimResponsibilityForObjectSymbols(true);
+    Layer->setOverrideObjectFlagsWithResponsibilityFlags(true);
+    Layer->setAutoClaimResponsibilityForObjectSymbols(true);
   }
 
   // FIXME: Explicit conversion to std::unique_ptr<ObjectLayer> added to silence
   //        errors from some GCC / libstdc++ bots. Remove this conversion (i.e.
   //        just return ObjLinkingLayer) once those bots are upgraded.
-  return std::unique_ptr<ObjectLayer>(std::move(ObjLinkingLayer));
+  return std::unique_ptr<ObjectLayer>(std::move(Layer));
 }
 
 Expected<std::unique_ptr<IRCompileLayer::IRCompiler>>


        


More information about the llvm-commits mailing list