Skip to content

Commit 49a3b18

Browse files
Address a comment.
1 parent 3b1c585 commit 49a3b18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,12 +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 =
932+
[[maybe_unused]] bool Inserted =
933933
UndriftMaps.try_emplace(CallerGUID, std::move(Matchings)).second;
934934

935935
// The insertion must succeed because we visit each GUID exactly once.
936936
assert(Inserted);
937-
(void)Inserted;
938937
}
939938

940939
return UndriftMaps;

0 commit comments

Comments
 (0)