aboutsummaryrefslogtreecommitdiff
path: root/clang-apply-replacements
diff options
context:
space:
mode:
Diffstat (limited to 'clang-apply-replacements')
-rw-r--r--clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp b/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
index 037caf36..832c3a6b 100644
--- a/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
+++ b/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
@@ -67,8 +67,7 @@ collectReplacementsFromDirectory(const llvm::StringRef Directory,
continue;
}
- yaml::Input YIn(Out->getBuffer());
- YIn.setDiagHandler(&eatDiagnostics);
+ yaml::Input YIn(Out->getBuffer(), NULL, &eatDiagnostics);
tooling::TranslationUnitReplacements TU;
YIn >> TU;
if (YIn.error()) {