aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp')
-rw-r--r--clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp b/clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp
index 91e2a93..98987ad 100644
--- a/clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp
+++ b/clang-tools-extra/clang-include-fixer/FuzzySymbolIndex.cpp
@@ -131,7 +131,7 @@ FuzzySymbolIndex::queryRegexp(const std::vector<std::string> &Tokens) {
llvm::Expected<std::unique_ptr<FuzzySymbolIndex>>
FuzzySymbolIndex::createFromYAML(StringRef FilePath) {
- auto Buffer = llvm::MemoryBuffer::getFile(FilePath);
+ auto Buffer = llvm::MemoryBuffer::getFile(FilePath, /*IsText=*/true);
if (!Buffer)
return llvm::errorCodeToError(Buffer.getError());
return std::make_unique<MemSymbolIndex>(