projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2aad23
)
Doh! Wrong accessor. Caused 'can not read bytecode' errors. :(
author
Chris Lattner
<sabre@nondot.org>
Mon, 23 Jul 2001 18:51:23 +0000
(18:51 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 23 Jul 2001 18:51:23 +0000
(18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Bytecode/Reader/Reader.cpp
patch
|
blob
|
history
diff --git
a/lib/Bytecode/Reader/Reader.cpp
b/lib/Bytecode/Reader/Reader.cpp
index e8bf17e604f75cbc9f308f76a1f8cb71b0aec357..c16064b7e2763282046d63d4ea0a5775a4d655da 100644
(file)
--- 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; }