Skip to content

Commit ad2263d

Browse files
committed
[Sema] Replace invalid FIXME about memory leak. NFC
Added in my previous patch by mistake.
1 parent 68dee83 commit ad2263d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ bool Sema::CheckConstraintSatisfaction(
341341
OutSatisfaction = *Satisfaction;
342342
// We cannot use InsertPos here because CheckConstraintSatisfaction might have
343343
// invalidated it.
344-
// FIXME: this leaks memory, we should allocate in the arena instead.
344+
// Note that entries of SatisfactionCache are deleted in Sema's destructor.
345345
SatisfactionCache.InsertNode(Satisfaction.release());
346346
return false;
347347
}

0 commit comments

Comments
 (0)