Skip to content

Commit 0bf4a38

Browse files
Fix some clang-tidy suggested issues 2
1 parent dcc9601 commit 0bf4a38

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
@@ -3394,10 +3394,10 @@ namespace Cpp {
33943394

33953395
// Lazy materialization unit class helper
33963396
class AutoloadLibraryMU : public llvm::orc::MaterializationUnit {
3397-
const std::string lib;
3397+
std::string lib;
33983398
llvm::orc::SymbolNameVector syms;
33993399
public:
3400-
AutoloadLibraryMU(const std::string Library, const llvm::orc::SymbolNameVector &Symbols)
3400+
AutoloadLibraryMU(const std::string& Library, const llvm::orc::SymbolNameVector &Symbols)
34013401
: MaterializationUnit({getSymbolFlagsMap(Symbols), nullptr}), lib(Library), syms(Symbols) {}
34023402

34033403
[[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)