I don't know what I was thinking

llvm-svn: 1275
This commit is contained in:
Chris Lattner 2001-11-12 20:30:12 +00:00
parent ab0f8a05f6
commit 2dce653a78

View File

@ -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