diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-23 18:51:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-23 18:51:23 +0000 |
commit | b49ff5c5ee8d0c3a5b58eaf7cbcaf23c4f2960ea (patch) | |
tree | 5d8e34a7732f96d0453985a6c672570380216c5c /lib/Bytecode/Reader/Reader.cpp | |
parent | e2aad23855e1718b0404903c53bd87a700a1aaf3 (diff) |
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
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index e8bf17e604..c16064b7e2 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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; } |