summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-06 01:25:58 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-06 01:25:58 +0000
commitf45d67364e08766ded5c04b23567319c28deda10 (patch)
treedc98972f718515e56eb20cf79f1be91caff4b5a1 /examples
parentefbf487da83883c2da81181cac6f040928aa4289 (diff)
Unbreak build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/wpa/clang-wpa.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp
index 9ff796eecd..205d488c17 100644
--- a/examples/wpa/clang-wpa.cpp
+++ b/examples/wpa/clang-wpa.cpp
@@ -17,6 +17,7 @@
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Index/CallGraph.h"
+#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
using namespace clang;
@@ -37,10 +38,10 @@ int main(int argc, char **argv) {
llvm::OwningPtr<Diagnostic> Diags(
CompilerInstance::createDiagnostics(DiagOpts, argc, argv));
+ llvm::IntrusiveRefCntPtr<Diagnostic> Diags(new Diagnostic);
for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) {
const std::string &InFile = InputFilenames[i];
- llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile,
- OwnedDiag(*Diags)));
+ llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, Diags));
if (!AST)
return 1;