[PATCH] D27751: Use after move bug fixes

Martin Böhme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 14 05:46:31 PST 2016


mboehme added inline comments.


================
Comment at: lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp:42
     PrevAbbrCode = AbbrDecl.getCode();
-    Decls.push_back(std::move(AbbrDecl));
+    Decls.push_back(AbbrDecl);
   }
----------------
malcolm.parsons wrote:
> False positive - extract() reinitializes.
Thanks. FYI, we're working on a proposal for annotating methods that reinitialize an object.


https://reviews.llvm.org/D27751





More information about the llvm-commits mailing list