diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-01 18:04:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-01 18:04:30 +0000 |
commit | 35de512b9cb22a234a771b417507f71a2bbb5a94 (patch) | |
tree | 04c2e172631eddcef94ae8e8c486e057c271b2b6 /lib/AST/TranslationUnit.cpp | |
parent | be2ab45def5c856c32cb15a2a67254e15b40b0bb (diff) |
Update to match simplified llvm MemoryBuffer interfaces for files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/TranslationUnit.cpp')
-rw-r--r-- | lib/AST/TranslationUnit.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/AST/TranslationUnit.cpp b/lib/AST/TranslationUnit.cpp index b91448b2d3..fdc37a8443 100644 --- a/lib/AST/TranslationUnit.cpp +++ b/lib/AST/TranslationUnit.cpp @@ -126,8 +126,7 @@ clang::ReadASTBitcodeFile(const llvm::sys::Path& Filename, FileManager& FMgr) { // Create the memory buffer that contains the contents of the file. llvm::OwningPtr<llvm::MemoryBuffer> - MBuffer(llvm::MemoryBuffer::getFile(Filename.c_str(), - strlen(Filename.c_str()))); + MBuffer(llvm::MemoryBuffer::getFile(Filename.c_str())); if (!MBuffer) { // FIXME: Provide diagnostic. |