[PATCH] D62767: [APFloat] APFloat::Storage::Storage - refix use after move
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 12:50:37 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362833: [APFloat] APFloat::Storage::Storage - refix use after move (authored by nickdesaulniers, committed by ).
Herald added a subscriber: kristina.
Changed prior to commit:
https://reviews.llvm.org/D62767?vs=202527&id=203600#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62767/new/
https://reviews.llvm.org/D62767
Files:
llvm/trunk/lib/Support/APFloat.cpp
Index: llvm/trunk/lib/Support/APFloat.cpp
===================================================================
--- llvm/trunk/lib/Support/APFloat.cpp
+++ llvm/trunk/lib/Support/APFloat.cpp
@@ -4418,8 +4418,9 @@
return;
}
if (usesLayout<DoubleAPFloat>(Semantics)) {
+ const fltSemantics& S = F.getSemantics();
new (&Double)
- DoubleAPFloat(Semantics, APFloat(std::move(F), F.getSemantics()),
+ DoubleAPFloat(Semantics, APFloat(std::move(F), S),
APFloat(semIEEEdouble));
return;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62767.203600.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/0212e996/attachment.bin>
More information about the llvm-commits
mailing list