[llvm-bugs] [Bug 34098] New: [APFloat] DoubleAPFloat::isInteger would always trigger an assert.
llvm-bugs at lists.llvm.org
Mon Aug 7 03:48:42 PDT 2017
Bug ID: 34098
Summary: [APFloat] DoubleAPFloat::isInteger would always
trigger an assert.
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: edy.burt at gmail.com
CC: llvm-bugs at lists.llvm.org
`DoubleAPFloat::isInteger` creates a zero `semPPCDoubleDoubleLegacy` APFloat
and then tries to add `Floats` and `Floats` to it, both of which are
Addition (like the other binary operations) has an assert that the semantics
are identical so calling this method would always assert (if they're enabled),
but it's not even tested.
Also, I'd expect the correct implementation to be `Floats.isInteger() &&
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs