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,
6565 assert (MM.Address % getpagesize () == 0 &&
6666 " Memory mappings need to be aligned to page boundaries." );
6767#endif
68+ const MemoryValue &MemVal = Key.MemoryValues .at (MM.MemoryValueName );
6869 BBF.addInstructions (ET.generateMmap (
69- MM.Address , Key. MemoryValues . at (MM. MemoryValueName ) .SizeBytes ,
70+ MM.Address , MemVal .SizeBytes ,
7071 ET.getAuxiliaryMemoryStartAddress () +
71- sizeof (int ) * (Key. MemoryValues . at (MM. MemoryValueName ). Index +
72- SubprocessMemory::AuxiliaryMemoryOffset)));
72+ sizeof (int ) *
73+ (MemVal. Index + SubprocessMemory::AuxiliaryMemoryOffset)));
7374 }
7475 BBF.addInstructions (ET.setStackRegisterToAuxMem ());
7576 }
You can’t perform that action at this time.
0 commit comments