diff options
Diffstat (limited to 'lib/AsmParser/Parser.cpp')
-rw-r--r-- | lib/AsmParser/Parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index 157a43b..0005e11 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -22,8 +22,7 @@ ParseError* TheParseError = 0; /// FIXME: Not threading friendly Module *llvm::ParseAssemblyFile(const std::string &Filename, ParseError* Err) { std::string ErrorStr; - MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size(), - &ErrorStr); + MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr); if (F == 0) { if (Err) Err->setError(Filename, "Could not open input file '" + Filename + "'"); |