Skip to content

Commit 925b7d6

Browse files
committed
[ORC] Replace some KV loop variables with structured bindings.
Same idea as 006aaf3 -- reduce boilerplate and improve readability. This time updates will be piecemeal to make it easier to identify errors. Coding my way home: 2.18555S, 93.78063W
1 parent 4a812b5 commit 925b7d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/ExecutionEngine/Orc/Core.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ FailedToMaterialize::FailedToMaterialize(
8787

8888
// FIXME: Use a new dep-map type for FailedToMaterialize errors so that we
8989
// don't have to manually retain/release.
90-
for (auto &KV : *this->Symbols)
91-
KV.first->Retain();
90+
for (auto &[JD, Syms] : *this->Symbols)
91+
JD->Retain();
9292
}
9393

9494
FailedToMaterialize::~FailedToMaterialize() {
95-
for (auto &KV : *Symbols)
96-
KV.first->Release();
95+
for (auto &[JD, Syms] : *Symbols)
96+
JD->Release();
9797
}
9898

9999
std::error_code FailedToMaterialize::convertToErrorCode() const {

0 commit comments

Comments
 (0)