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:
Chris Lattner 2001-07-23 18:51:23 +00:00
parent e2aad23855
commit b49ff5c5ee

View File

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