summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/ASTImporterTest.cpp
diff options
context:
space:
mode:
authorMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 10:39:27 +0000
committerMalcolm Parsons <malcolm.parsons@gmail.com>2016-11-02 10:39:27 +0000
commitf76f6507c2359b0e2b1d6a2cc2305bf69932e4b8 (patch)
tree1ad0fc11d9a2a1573da6c1ca02c8a24a8a3760a5 /clang/unittests/AST/ASTImporterTest.cpp
parenteaa419cf5e87a164d6a5b43f8f1bc7530c70c977 (diff)
downloadbcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.tar.gz
bcm5719-llvm-f76f6507c2359b0e2b1d6a2cc2305bf69932e4b8.zip
Fix Clang-tidy readability-redundant-string-cstr warnings
Reviewers: aaron.ballman, mehdi_amini, dblaikie Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26206 llvm-svn: 285799
Diffstat (limited to 'clang/unittests/AST/ASTImporterTest.cpp')
-rw-r--r--clang/unittests/AST/ASTImporterTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/unittests/AST/ASTImporterTest.cpp b/clang/unittests/AST/ASTImporterTest.cpp
index 39d6afee40b..2255d7652c2 100644
--- a/clang/unittests/AST/ASTImporterTest.cpp
+++ b/clang/unittests/AST/ASTImporterTest.cpp
@@ -71,8 +71,7 @@ testImport(const std::string &FromCode, Language FromLang,
ToCtx.getSourceManager().getFileManager().getVirtualFileSystem().get());
vfs::InMemoryFileSystem *MFS = static_cast<vfs::InMemoryFileSystem *>(
OFS->overlays_begin()->get());
- MFS->addFile(InputFileName, 0,
- llvm::MemoryBuffer::getMemBuffer(FromCode.c_str()));
+ MFS->addFile(InputFileName, 0, llvm::MemoryBuffer::getMemBuffer(FromCode));
ASTImporter Importer(ToCtx, ToAST->getFileManager(),
FromCtx, FromAST->getFileManager(), false);
OpenPOWER on IntegriCloud