summaryrefslogtreecommitdiff
path: root/unittests/AST/CommentParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/AST/CommentParser.cpp')
-rw-r--r--unittests/AST/CommentParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/AST/CommentParser.cpp b/unittests/AST/CommentParser.cpp
index c72aef107f..0064078d86 100644
--- a/unittests/AST/CommentParser.cpp
+++ b/unittests/AST/CommentParser.cpp
@@ -55,7 +55,7 @@ protected:
FullComment *CommentParserTest::parseString(const char *Source) {
MemoryBuffer *Buf = MemoryBuffer::getMemBuffer(Source);
- FileID File = SourceMgr.createFileIDForMemBuffer(Buf);
+ FileID File = SourceMgr.createFileID(Buf);
SourceLocation Begin = SourceMgr.getLocForStartOfFile(File);
Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source));