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