forked from OSchip/llvm-project
parent
bc7b224ce4
commit
cbff1d08f2
File diff suppressed because it is too large
Load Diff
|
@ -360,7 +360,7 @@
|
|||
|
||||
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
||||
typedef union YYSTYPE
|
||||
#line 970 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
#line 974 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
{
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
|
|
|
@ -707,6 +707,7 @@ static void ResolveTypeTo(std::string *Name, const Type *ToTy) {
|
|||
((DerivedType*)I->second.get())->refineAbstractTypeTo(ToTy);
|
||||
CurModule.LateResolveTypes.erase(I);
|
||||
}
|
||||
D.destroy();
|
||||
}
|
||||
|
||||
// setValueName - Set the specified value to the name given. The name may be
|
||||
|
@ -782,9 +783,12 @@ ParseGlobalVariable(std::string *NameStr,
|
|||
GV->setConstant(isConstantGlobal);
|
||||
GV->setThreadLocal(IsThreadLocal);
|
||||
InsertValue(GV, CurModule.Values);
|
||||
ID.destroy();
|
||||
return GV;
|
||||
}
|
||||
|
||||
ID.destroy();
|
||||
|
||||
// If this global has a name
|
||||
if (!Name.empty()) {
|
||||
// if the global we're parsing has an initializer (is a definition) and
|
||||
|
|
Loading…
Reference in New Issue