mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
I don't know what I was thinking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
84efe09e3d
commit
b7325433aa
@ -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