summaryrefslogtreecommitdiffstats
path: root/clang/examples/wpa/clang-wpa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/examples/wpa/clang-wpa.cpp')
-rw-r--r--clang/examples/wpa/clang-wpa.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/examples/wpa/clang-wpa.cpp b/clang/examples/wpa/clang-wpa.cpp
index cca7907ba09..ae789fa9ae3 100644
--- a/clang/examples/wpa/clang-wpa.cpp
+++ b/clang/examples/wpa/clang-wpa.cpp
@@ -33,8 +33,9 @@ int main(int argc, char **argv) {
if (InputFilenames.empty())
return 0;
+ DiagnosticOptions DiagOpts;
llvm::OwningPtr<Diagnostic> Diags(
- CompilerInstance::createDiagnostics(DiagnosticOptions(), argc, argv));
+ CompilerInstance::createDiagnostics(DiagOpts, argc, argv));
for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) {
const std::string &InFile = InputFilenames[i];
OpenPOWER on IntegriCloud