[pdb] silence warnings about moving from a temporary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2016-06-01 18:18:55 +00:00
parent 26a469256c
commit 3ca9979447

View File

@ -23,7 +23,7 @@ namespace {
#define EXPECT_NO_ERROR(Err) \ #define EXPECT_NO_ERROR(Err) \
{ \ { \
auto E = std::move(Err); \ auto E = Err; \
EXPECT_FALSE(static_cast<bool>(E)); \ EXPECT_FALSE(static_cast<bool>(E)); \
if (E) \ if (E) \
consumeError(std::move(E)); \ consumeError(std::move(E)); \
@ -31,7 +31,7 @@ namespace {
#define EXPECT_ERROR(Err) \ #define EXPECT_ERROR(Err) \
{ \ { \
auto E = std::move(Err); \ auto E = Err; \
EXPECT_TRUE(static_cast<bool>(E)); \ EXPECT_TRUE(static_cast<bool>(E)); \
if (E) \ if (E) \
consumeError(std::move(E)); \ consumeError(std::move(E)); \