From ef486bf0e4424f1eaa533d2a3e9ed66233103f11 Mon Sep 17 00:00:00 2001 From: Sarah Mashayekhi Date: Wed, 11 Nov 2020 16:40:05 +0000 Subject: [PATCH] remove redundant std::move to fix clang errors Change-Id: I86be320a3f3ac7855460341d4570bc7df715243a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/32381 Reviewed-by: Ben Clayton Commit-Queue: Sarah Mashayekhi --- src/reader/wgsl/parser_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reader/wgsl/parser_impl.cc b/src/reader/wgsl/parser_impl.cc index 01d3678fdd..036a35f417 100644 --- a/src/reader/wgsl/parser_impl.cc +++ b/src/reader/wgsl/parser_impl.cc @@ -320,7 +320,7 @@ Maybe> ParserImpl::global_variable_decl( return Failure::kErrored; var->set_constructor(std::move(expr.value)); } - return std::move(var); + return var; } // global_constant_decl @@ -1550,7 +1550,7 @@ Maybe> ParserImpl::switch_stmt() { list.push_back(std::move(stmt.value)); } - return std::move(list); + return list; }); if (body.errored)