OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
793d4a8
)
plug another leak in LLParser::PerFunctionState::SetInstName()
author
Nuno Lopes
<nunoplopes@sapo.pt>
Wed, 2 Sep 2009 15:02:57 +0000
(15:02 +0000)
committer
Nuno Lopes
<nunoplopes@sapo.pt>
Wed, 2 Sep 2009 15:02:57 +0000
(15:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80792
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/lib/AsmParser/LLParser.cpp
b/lib/AsmParser/LLParser.cpp
index
3d2e312
..
3ef4aaf
100644
(file)
--- a/
lib/AsmParser/LLParser.cpp
+++ b/
lib/AsmParser/LLParser.cpp
@@
-1686,6
+1686,7
@@
bool LLParser::PerFunctionState::SetInstName(int NameID,
return P.Error(NameLoc, "instruction forward referenced with type '" +
FI->second.first->getType()->getDescription() + "'");
FI->second.first->replaceAllUsesWith(Inst);
+ delete FI->second.first;
ForwardRefValIDs.erase(FI);
}