forked from OSchip/llvm-project
parent
0e92081b04
commit
c6a5b0979f
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 982 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
#line 986 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
|
||||
{
|
||||
llvm::Module *ModuleVal;
|
||||
llvm::Function *FunctionVal;
|
||||
|
|
|
@ -437,7 +437,11 @@ static Value *getExistingVal(const Type *Ty, const ValID &D) {
|
|||
D.ConstPoolFP->convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven,
|
||||
&ignored);
|
||||
}
|
||||
return ConstantFP::get(*D.ConstPoolFP);
|
||||
{
|
||||
ConstantFP *tmp = ConstantFP::get(*D.ConstPoolFP);
|
||||
D.destroy();
|
||||
return tmp;
|
||||
}
|
||||
|
||||
case ValID::ConstNullVal: // Is it a null value?
|
||||
if (!isa<PointerType>(Ty)) {
|
||||
|
|
Loading…
Reference in New Issue