[llvm] r285486 - [APFloat] Remove the redundent function body of uninitialized ctor, which should be done in r285468
Tim Shen via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 17:51:42 PDT 2016
Author: timshen
Date: Fri Oct 28 19:51:41 2016
New Revision: 285486
URL: http://llvm.org/viewvc/llvm-project?rev=285486&view=rev
Log:
[APFloat] Remove the redundent function body of uninitialized ctor, which should be done in r285468
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=285486&r1=285485&r2=285486&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Fri Oct 28 19:51:41 2016
@@ -821,10 +821,7 @@ IEEEFloat::IEEEFloat(const fltSemantics
// Delegate to the previous constructor, because later copy constructor may
// actually inspects category, which can't be garbage.
IEEEFloat::IEEEFloat(const fltSemantics &ourSemantics, uninitializedTag tag)
- : IEEEFloat(ourSemantics) {
- // Allocates storage if necessary but does not initialize it.
- initialize(&ourSemantics);
-}
+ : IEEEFloat(ourSemantics) {}
IEEEFloat::IEEEFloat(const IEEEFloat &rhs) {
initialize(rhs.semantics);
More information about the llvm-commits
mailing list