From: David Neto Date: Thu, 11 Aug 2016 16:11:36 +0000 (-0400) Subject: Avoid double-copy of NameMapper object. X-Git-Tag: upstream/2018.6~1137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=892239b7ccfec1774f3d81cc385c06f72aae1c78;p=platform%2Fupstream%2FSPIRV-Tools.git Avoid double-copy of NameMapper object. --- diff --git a/tools/cfg/bin_to_dot.cpp b/tools/cfg/bin_to_dot.cpp index 841d1f7..64ac14d 100644 --- a/tools/cfg/bin_to_dot.cpp +++ b/tools/cfg/bin_to_dot.cpp @@ -28,6 +28,7 @@ #include #include +#include #include #include "assembly_grammar.h" @@ -43,7 +44,7 @@ const char* kContinueStyle = "style=dotted"; class DotConverter { public: DotConverter(libspirv::NameMapper name_mapper, std::iostream* out) - : name_mapper_(name_mapper), out_(*out) {} + : name_mapper_(std::move(name_mapper)), out_(*out) {} // Emits the graph preamble. void Begin() const {