summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/CommentLexer.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-29 07:59:55 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-29 07:59:55 +0000
commit50a5f97e829c9878f1d611650f57b88d99c6ab96 (patch)
tree92fd083f5bbb0873bdaa9dc8869e94a5cf942782 /clang/unittests/AST/CommentLexer.cpp
parent0392cf892fcbad8224380c36c3e91dcaff18ece9 (diff)
downloadbcm5719-llvm-50a5f97e829c9878f1d611650f57b88d99c6ab96.tar.gz
bcm5719-llvm-50a5f97e829c9878f1d611650f57b88d99c6ab96.zip
unique_ptrify SourceManager::createFileID
llvm-svn: 216715
Diffstat (limited to 'clang/unittests/AST/CommentLexer.cpp')
-rw-r--r--clang/unittests/AST/CommentLexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/AST/CommentLexer.cpp b/clang/unittests/AST/CommentLexer.cpp
index 7cac1eaaf1c..77ee22ffb43 100644
--- a/clang/unittests/AST/CommentLexer.cpp
+++ b/clang/unittests/AST/CommentLexer.cpp
@@ -61,7 +61,7 @@ protected:
void CommentLexerTest::lexString(const char *Source,
std::vector<Token> &Toks) {
std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Source);
- FileID File = SourceMgr.createFileID(Buf.release());
+ FileID File = SourceMgr.createFileID(std::move(Buf));
SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));
OpenPOWER on IntegriCloud