Fixes PR30869.
In D25977 I meant to change all functions that care about lifetime. I changed constructors, factory functions, but I missed member/free functions that return new instances. This patch changes them.
Paths
| Differential D26269
[APFloat] Make functions that produce APFloaat objects use correct semantics. ClosedPublic Authored by timshen on Nov 2 2016, 6:33 PM.
Details Summary Fixes PR30869. In D25977 I meant to change all functions that care about lifetime. I changed constructors, factory functions, but I missed member/free functions that return new instances. This patch changes them.
Diff Detail
Event TimelineComment Actions Can you please explain the problem/solution?
timshen edited edge metadata. Comment ActionsActually use the Semantics that is passed into APFloat::Storage::Storage. Comment Actions
Added. Sorry for the oversight! Comment Actions
Added. Sorry for the oversight!
This revision is now accepted and ready to land.Nov 5 2016, 4:32 AM Closed by commit rL286060: [APFloat] Make functions that produce APFloaat objects use correct semantics. (authored by timshen). · Explain WhyNov 6 2016, 12:48 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 76885 llvm/include/llvm/ADT/APFloat.h
llvm/lib/Support/APFloat.cpp
llvm/unittests/ADT/APFloatTest.cpp
|
Why is S unused? If we're assuming that semantics is initialized elsewhere, a comment would be useful explaining why we have the argument.