Skip to content

Commit 679a331

Browse files
author
git apple-llvm automerger
committed
Merge commit '26ac7429d1d6' from llvm.org/main into next
2 parents de63e2d + 26ac742 commit 679a331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,11 @@ memprof::computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader,
929929
longestCommonSequence<LineLocation, GlobalValue::GUID>(
930930
ProfileAnchors, IRAnchors, std::equal_to<GlobalValue::GUID>(),
931931
[&](LineLocation A, LineLocation B) { Matchings.try_emplace(A, B); });
932-
bool Inserted = UndriftMaps.try_emplace(CallerGUID, Matchings).second;
932+
[[maybe_unused]] bool Inserted =
933+
UndriftMaps.try_emplace(CallerGUID, std::move(Matchings)).second;
933934

934935
// The insertion must succeed because we visit each GUID exactly once.
935936
assert(Inserted);
936-
(void)Inserted;
937937
}
938938

939939
return UndriftMaps;

0 commit comments

Comments
 (0)