Skip to content

Commit 29f6c0f

Browse files
[JITLink][AArch32] Fix MSVC error on missing constexpr capture
The Windows MSVC builder complains: 'ImmMask' cannot be implicitly captured because no default capture mode has been specified When adding the explicit capture, Clang warns: Lambda capture 'ImmMask' is not required to be captured for this use This seems to be a known implementation divergence. Using a default value capture should avoid the issue.
1 parent be59265 commit 29f6c0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/ExecutionEngine/JITLink/AArch32Tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ TEST(AArch32_Relocations, Arm_Call_Bare) {
183183
0xffffffff, // ones
184184
};
185185

186-
auto EncodeDecode = [](int64_t In, MutableWord &Mem) {
186+
auto EncodeDecode = [=](int64_t In, MutableWord &Mem) {
187187
Mem.patch(encodeImmBA1BlA1BlxA2(In), ImmMask);
188188
return decodeImmBA1BlA1BlxA2(Mem.Wd);
189189
};

0 commit comments

Comments
 (0)