Displaying 2 results from an estimated 2 matches for "getvalueasdouble".
2008 Jun 06
3
[LLVMdev] StmtPrinter long double support.
...the
-ast-print options for a file that uses long double.
The Basic/Targets.cpp file defined the x86 (and x86_64) long double
type as APFloat::x87DoubleExtended.
Then, when the AST printer try to write a long double literal value
(using VisitFloatingLiteral()), it call FloatingLiteral-
>getValueAsDouble() and the later does not support long double, so it
try to call convertToDouble() as a fallback and crash due to an
invalid assertion. APFloat.cpp:2631: failed assertion `semantics ==
(const llvm::fltSemantics*)&IEEEdouble'
This is a know issue as some there is some comments like &qu...
2008 Jun 06
0
[LLVMdev] StmtPrinter long double support.
...r a file that uses long double.
>
> The Basic/Targets.cpp file defined the x86 (and x86_64) long double
> type as APFloat::x87DoubleExtended.
> Then, when the AST printer try to write a long double literal value
> (using VisitFloatingLiteral()), it call FloatingLiteral-
> >getValueAsDouble() and the later does not support long double, so
> it try to call convertToDouble() as a fallback and crash due to an
> invalid assertion. APFloat.cpp:2631: failed assertion `semantics ==
> (const llvm::fltSemantics*)&IEEEdouble'
>
> This is a know issue as some there i...