1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[pdb] silence warnings about moving from a temporary.

llvm-svn: 271420
This commit is contained in:
Zachary Turner 2016-06-01 18:18:55 +00:00
parent 0d36b051c9
commit a2230c62dd

View File

@ -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)); \