mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Doh! Wrong accessor. Caused 'can not read bytecode' errors. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e2aad23855
commit
b49ff5c5ee
@ -420,7 +420,7 @@ Module *ParseBytecodeFile(const string &Filename) {
|
||||
Module *Result = 0;
|
||||
|
||||
if (Filename != string("-")) { // Read from a file...
|
||||
int FD = open(Filename.data(), O_RDONLY);
|
||||
int FD = open(Filename.c_str(), O_RDONLY);
|
||||
if (FD == -1) return 0;
|
||||
|
||||
if (fstat(FD, &StatBuf) == -1) { close(FD); return 0; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user