Skip to content

Commit 530d8e8

Browse files
alexander-penevmcbarton
authored andcommitted
Fix some clang-tidy suggested issues 2
1 parent 290d7f5 commit 530d8e8

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
@@ -3415,10 +3415,10 @@ namespace Cpp {
34153415

34163416
// Lazy materialization unit class helper
34173417
class AutoloadLibraryMU : public llvm::orc::MaterializationUnit {
3418-
const std::string lib;
3418+
std::string lib;
34193419
llvm::orc::SymbolNameVector syms;
34203420
public:
3421-
AutoloadLibraryMU(const std::string Library, const llvm::orc::SymbolNameVector &Symbols)
3421+
AutoloadLibraryMU(const std::string& Library, const llvm::orc::SymbolNameVector &Symbols)
34223422
: MaterializationUnit({getSymbolFlagsMap(Symbols), nullptr}), lib(Library), syms(Symbols) {}
34233423

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

lib/Interpreter/DynamicLibraryManager.cpp

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

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

0 commit comments

Comments
 (0)