fix memleak in FunctionHeaderH

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nuno Lopes 2008-10-03 15:44:21 +00:00
parent b6cc085134
commit 06a62886fb

View File

@ -2420,6 +2420,7 @@ FunctionHeaderH : OptCallingConv OptRetAttrs ResultTypes GlobalName '(' ArgList
InsertValue(Fn, CurModule.Values);
}
ID.destroy();
CurFun.FunctionStart(Fn);
if (CurFun.isDeclare) {