forked from OSchip/llvm-project
[Sema] Replace invalid FIXME about memory leak. NFC
Added in my previous patch by mistake.
This commit is contained in:
parent
68dee83923
commit
ad2263de9f
|
@ -341,7 +341,7 @@ bool Sema::CheckConstraintSatisfaction(
|
|||
OutSatisfaction = *Satisfaction;
|
||||
// We cannot use InsertPos here because CheckConstraintSatisfaction might have
|
||||
// invalidated it.
|
||||
// FIXME: this leaks memory, we should allocate in the arena instead.
|
||||
// Note that entries of SatisfactionCache are deleted in Sema's destructor.
|
||||
SatisfactionCache.InsertNode(Satisfaction.release());
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue