[llvm] r271420 - [pdb] silence warnings about moving from a temporary.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 11:18:56 PDT 2016


Author: zturner
Date: Wed Jun  1 13:18:55 2016
New Revision: 271420

URL: http://llvm.org/viewvc/llvm-project?rev=271420&view=rev
Log:
[pdb] silence warnings about moving from a temporary.

Modified:
    llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp

Modified: llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp?rev=271420&r1=271419&r2=271420&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/PDB/MappedBlockStreamTest.cpp Wed Jun  1 13:18:55 2016
@@ -23,7 +23,7 @@ namespace {
 
 #define EXPECT_NO_ERROR(Err)                                                   \
   {                                                                            \
-    auto E = std::move(Err);                                                   \
+    auto E = Err;                                                              \
     EXPECT_FALSE(static_cast<bool>(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<bool>(E));                                         \
     if (E)                                                                     \
       consumeError(std::move(E));                                              \




More information about the llvm-commits mailing list