mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 23:50:50 +00:00
I don't know what I was thinking
llvm-svn: 1275
This commit is contained in:
parent
ab0f8a05f6
commit
2dce653a78
@ -614,8 +614,8 @@ Module *ParseBytecodeFile(const string &Filename, string *ErrorStr) {
|
||||
uchar *Buf = (uchar*)mmap(0, FileSize, PROT_READ|PROT_WRITE,
|
||||
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
|
||||
assert((Buf != (uchar*)-1) && "mmap returned error!");
|
||||
free(FileData);
|
||||
memcpy(Buf, FileData, FileSize);
|
||||
free(FileData);
|
||||
#else
|
||||
uchar *Buf = FileData;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user