mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
reject PR3281:crash10.ll with:
llvm-as: crash10.ll:3:35: floating point constant does not have type 'ppc_fp128' "dumy" = fcmp ult ppc_fp128 "j",9209.4 ^ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1911,6 +1911,11 @@ bool LLParser::ConvertGlobalValIDToValue(const Type *Ty, ValID &ID,
|
|||||||
&Ignored);
|
&Ignored);
|
||||||
}
|
}
|
||||||
V = ConstantFP::get(ID.APFloatVal);
|
V = ConstantFP::get(ID.APFloatVal);
|
||||||
|
|
||||||
|
if (V->getType() != Ty)
|
||||||
|
return Error(ID.Loc, "floating point constant does not have type '" +
|
||||||
|
Ty->getDescription() + "'");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
case ValID::t_Null:
|
case ValID::t_Null:
|
||||||
if (!isa<PointerType>(Ty))
|
if (!isa<PointerType>(Ty))
|
||||||
|
Reference in New Issue
Block a user