File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/tools/llvm-exegesis/lib Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,12 @@ static bool generateSnippetSetupCode(const ExegesisTarget &ET,
65
65
assert (MM.Address % getpagesize () == 0 &&
66
66
" Memory mappings need to be aligned to page boundaries." );
67
67
#endif
68
+ const MemoryValue &MemVal = Key.MemoryValues .at (MM.MemoryValueName );
68
69
BBF.addInstructions (ET.generateMmap (
69
- MM.Address , Key. MemoryValues . at (MM. MemoryValueName ) .SizeBytes ,
70
+ MM.Address , MemVal .SizeBytes ,
70
71
ET.getAuxiliaryMemoryStartAddress () +
71
- sizeof (int ) * (Key. MemoryValues . at (MM. MemoryValueName ). Index +
72
- SubprocessMemory::AuxiliaryMemoryOffset)));
72
+ sizeof (int ) *
73
+ (MemVal. Index + SubprocessMemory::AuxiliaryMemoryOffset)));
73
74
}
74
75
BBF.addInstructions (ET.setStackRegisterToAuxMem ());
75
76
}
You can’t perform that action at this time.
0 commit comments