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 747f016184
commit 4a797f461f
1 changed files with 1 additions and 1 deletions

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