summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r--llvm/lib/Support/APFloat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp
index 208950d7ab7..aea59301079 100644
--- a/llvm/lib/Support/APFloat.cpp
+++ b/llvm/lib/Support/APFloat.cpp
@@ -4418,9 +4418,9 @@ APFloat::Storage::Storage(IEEEFloat F, const fltSemantics &Semantics) {
return;
}
if (usesLayout<DoubleAPFloat>(Semantics)) {
- new (&Double)
- DoubleAPFloat(Semantics, APFloat(std::move(F), F.getSemantics()),
- APFloat(semIEEEdouble));
+ const fltSemantics IEEESemantics = F.getSemantics();
+ new (&Double) DoubleAPFloat(Semantics, APFloat(std::move(F), IEEESemantics),
+ APFloat(semIEEEdouble));
return;
}
llvm_unreachable("Unexpected semantics");
OpenPOWER on IntegriCloud