Skip to content

Commit 6cfe873

Browse files
Fix some clang-tidy suggested issues 2
1 parent 2c91834 commit 6cfe873

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Interpreter/CppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3305,10 +3305,10 @@ namespace Cpp {
33053305

33063306
// Lazy materialization unit class helper
33073307
class AutoloadLibraryMU : public llvm::orc::MaterializationUnit {
3308-
const std::string lib;
3308+
std::string lib;
33093309
llvm::orc::SymbolNameVector syms;
33103310
public:
3311-
AutoloadLibraryMU(const std::string Library, const llvm::orc::SymbolNameVector &Symbols)
3311+
AutoloadLibraryMU(const std::string& Library, const llvm::orc::SymbolNameVector &Symbols)
33123312
: MaterializationUnit({getSymbolFlagsMap(Symbols), nullptr}), lib(Library), syms(Symbols) {}
33133313

33143314
[[nodiscard]] StringRef getName() const override {

lib/Interpreter/DynamicLibraryManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,9 @@ namespace Cpp {
391391
return;
392392

393393
DyLibHandle dyLibHandle = nullptr;
394-
for (DyLibs::const_iterator I = m_DyLibs.begin(), E = m_DyLibs.end(); I != E; ++I) {
395-
if (I->second == canonicalLoadedLib) {
396-
dyLibHandle = I->first;
394+
for (const auto& dylib : m_DyLibs) {
395+
if (dylib.second == canonicalLoadedLib) {
396+
dyLibHandle = dylib.first;
397397
break;
398398
}
399399
}

0 commit comments

Comments
 (0)