summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index e8bf17e604f..c16064b7e27 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/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; }
OpenPOWER on IntegriCloud