mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Fix a memory correctness error noticed by valgrind (harmless in practice).
Thanks to Duncan Sands for noticing it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fdd75125b8
commit
afa47c5a26
@ -110,7 +110,7 @@ namespace llvm {
|
|||||||
return;
|
return;
|
||||||
if (--S->getValue().Refcount == 0) {
|
if (--S->getValue().Refcount == 0) {
|
||||||
S->getValue().Pool->InternTable.remove(S);
|
S->getValue().Pool->InternTable.remove(S);
|
||||||
delete S;
|
S->Destroy();
|
||||||
}
|
}
|
||||||
S = 0;
|
S = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user