mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[pdb] silence warnings about moving from a temporary.
llvm-svn: 271420
This commit is contained in:
parent
0d36b051c9
commit
a2230c62dd
@ -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)); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user