summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-08-17 12:00:19 +0000
committerPavel Labath <labath@google.com>2016-08-17 12:00:19 +0000
commit8e8e5061b856d5ba509bf5a31c808688e478466b (patch)
tree12abccb5159d55b5d37a257cc00964406097c7ce
parent2f430a19389e001931f24870a5f95ac10bad128e (diff)
downloadbcm5719-llvm-8e8e5061b856d5ba509bf5a31c808688e478466b.tar.gz
bcm5719-llvm-8e8e5061b856d5ba509bf5a31c808688e478466b.zip
Fix unittests on windows after r278915
Apparently clang will happily capture a const variable in a lambda without it being specified in the capture clause. MSVC does not like that. llvm-svn: 278925
-rw-r--r--lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
index a229730244c..c920abbbcdd 100644
--- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
+++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
@@ -71,7 +71,7 @@ TEST_F(GDBRemoteCommunicationClientTest, WriteRegister)
const lldb::tid_t tid = 0x47;
const uint32_t reg_num = 4;
std::future<bool> write_result =
- std::async(std::launch::async, [&client] { return client.WriteRegister(tid, reg_num, "ABCD"); });
+ std::async(std::launch::async, [&] { return client.WriteRegister(tid, reg_num, "ABCD"); });
Handle_QThreadSuffixSupported(server, true);
@@ -79,7 +79,7 @@ TEST_F(GDBRemoteCommunicationClientTest, WriteRegister)
ASSERT_TRUE(write_result.get());
write_result = std::async(std::launch::async,
- [&client] { return client.WriteAllRegisters(tid, "404142434445464748494a4b4c4d4e4f"); });
+ [&] { return client.WriteAllRegisters(tid, "404142434445464748494a4b4c4d4e4f"); });
HandlePacket(server, "G404142434445464748494a4b4c4d4e4f;thread:0047;", "OK");
ASSERT_TRUE(write_result.get());
@@ -96,7 +96,7 @@ TEST_F(GDBRemoteCommunicationClientTest, WriteRegisterNoSuffix)
const lldb::tid_t tid = 0x47;
const uint32_t reg_num = 4;
std::future<bool> write_result =
- std::async(std::launch::async, [&client] { return client.WriteRegister(tid, reg_num, "ABCD"); });
+ std::async(std::launch::async, [&] { return client.WriteRegister(tid, reg_num, "ABCD"); });
Handle_QThreadSuffixSupported(server, false);
HandlePacket(server, "Hg47", "OK");
@@ -104,7 +104,7 @@ TEST_F(GDBRemoteCommunicationClientTest, WriteRegisterNoSuffix)
ASSERT_TRUE(write_result.get());
write_result = std::async(std::launch::async,
- [&client] { return client.WriteAllRegisters(tid, "404142434445464748494a4b4c4d4e4f"); });
+ [&] { return client.WriteAllRegisters(tid, "404142434445464748494a4b4c4d4e4f"); });
HandlePacket(server, "G404142434445464748494a4b4c4d4e4f", "OK");
ASSERT_TRUE(write_result.get());
OpenPOWER on IntegriCloud