mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix MSVC lambda capture warnings. NFCI.
llvm-svn: 372144
This commit is contained in:
parent
5b5fcd24ff
commit
884f30e411
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user