Skip to content

Commit 462a31f

Browse files
committed
[APFloat] Remove workaround for old clang.
The comment says this is for clang 3.3. Our build requirements are clang 5.0 or newer so I think we can remove this. Reviewed By: nikic, RKSimon Differential Revision: https://reviews.llvm.org/D140613
1 parent aad7259 commit 462a31f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/include/llvm/ADT/APFloat.h

-7
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,6 @@ class APFloat : public APFloatBase {
859859
APFLOAT_DISPATCH_ON_SEMANTICS(makeSmallestNormalized(Neg));
860860
}
861861

862-
// FIXME: This is due to clang 3.3 (or older version) always checks for the
863-
// default constructor in an array aggregate initialization, even if no
864-
// elements in the array is default initialized.
865-
APFloat() : U(IEEEdouble()) {
866-
llvm_unreachable("This is a workaround for old clang.");
867-
}
868-
869862
explicit APFloat(IEEEFloat F, const fltSemantics &S) : U(std::move(F), S) {}
870863
explicit APFloat(DoubleAPFloat F, const fltSemantics &S)
871864
: U(std::move(F), S) {}

0 commit comments

Comments
 (0)