From 892239b7ccfec1774f3d81cc385c06f72aae1c78 Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 11 Aug 2016 12:11:36 -0400 Subject: [PATCH] Avoid double-copy of NameMapper object. --- tools/cfg/bin_to_dot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.7.4