[llvm] r372144 - Fix MSVC lambda capture warnings. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 10:24:55 PDT 2019
Author: rksimon
Date: Tue Sep 17 10:24:55 2019
New Revision: 372144
URL: http://llvm.org/viewvc/llvm-project?rev=372144&view=rev
Log:
Fix MSVC lambda capture warnings. NFCI.
Modified:
llvm/trunk/unittests/DebugInfo/GSYM/GSYMTest.cpp
Modified: llvm/trunk/unittests/DebugInfo/GSYM/GSYMTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/DebugInfo/GSYM/GSYMTest.cpp?rev=372144&r1=372143&r2=372144&view=diff
==============================================================================
--- llvm/trunk/unittests/DebugInfo/GSYM/GSYMTest.cpp (original)
+++ llvm/trunk/unittests/DebugInfo/GSYM/GSYMTest.cpp Tue Sep 17 10:24:55 2019
@@ -266,21 +266,21 @@ TEST(GSYMTest, TestFunctionInfoEncoding)
TestFunctionInfoEncodeDecode(llvm::support::little, FI);
TestFunctionInfoEncodeDecode(llvm::support::big, FI);
- auto AddLinesLambda = [](FunctionInfo &FI) {
+ auto AddLinesLambda = [FuncAddr, FileIdx](FunctionInfo &FI) {
FI.OptLineTable = LineTable();
- LineEntry Line0(FuncAddr+0x000, FileIdx, 10);
- LineEntry Line1(FuncAddr+0x010, FileIdx, 11);
- LineEntry Line2(FuncAddr+0x100, FileIdx, 1000);
+ LineEntry Line0(FuncAddr + 0x000, FileIdx, 10);
+ LineEntry Line1(FuncAddr + 0x010, FileIdx, 11);
+ LineEntry Line2(FuncAddr + 0x100, FileIdx, 1000);
FI.OptLineTable->push(Line0);
FI.OptLineTable->push(Line1);
FI.OptLineTable->push(Line2);
};
- auto AddInlineLambda = [](FunctionInfo &FI) {
+ auto AddInlineLambda = [FuncAddr, FuncSize](FunctionInfo &FI) {
FI.Inline = InlineInfo();
- FI.Inline->Ranges.insert(AddressRange(FuncAddr, FuncAddr+FuncSize));
+ FI.Inline->Ranges.insert(AddressRange(FuncAddr, FuncAddr + FuncSize));
InlineInfo Inline1;
- Inline1.Ranges.insert(AddressRange(FuncAddr+0x10, FuncAddr+0x30));
+ Inline1.Ranges.insert(AddressRange(FuncAddr + 0x10, FuncAddr + 0x30));
Inline1.Name = 1;
Inline1.CallFile = 1;
Inline1.CallLine = 11;
More information about the llvm-commits
mailing list