This was mentioned both in https://www.viva64.com/en/b/0629/ and by scan-build checks
........
There's concerns this may just introduce a use-after-free instead.....
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360770
91177308-0d34-0410-b5e6-
96231b3b80d8
return;
}
if (usesLayout<DoubleAPFloat>(Semantics)) {
- const fltSemantics IEEESemantics = F.getSemantics();
- new (&Double) DoubleAPFloat(Semantics, APFloat(std::move(F), IEEESemantics),
- APFloat(semIEEEdouble));
+ new (&Double)
+ DoubleAPFloat(Semantics, APFloat(std::move(F), F.getSemantics()),
+ APFloat(semIEEEdouble));
return;
}
llvm_unreachable("Unexpected semantics");