From a2230c62dd5ee74a007b9882e4ee24cdae0a9fd5 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 1 Jun 2016 18:18:55 +0000 Subject: [PATCH] [pdb] silence warnings about moving from a temporary. llvm-svn: 271420 --- unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp index aa579a3700a..f8af3a04986 100644 --- a/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp +++ b/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp @@ -23,7 +23,7 @@ namespace { #define EXPECT_NO_ERROR(Err) \ { \ - auto E = std::move(Err); \ + auto E = Err; \ EXPECT_FALSE(static_cast(E)); \ if (E) \ consumeError(std::move(E)); \ @@ -31,7 +31,7 @@ namespace { #define EXPECT_ERROR(Err) \ { \ - auto E = std::move(Err); \ + auto E = Err; \ EXPECT_TRUE(static_cast(E)); \ if (E) \ consumeError(std::move(E)); \