diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-05 21:47:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-05 21:47:24 +0000 |
commit | f9b14a7af9329b384ae3beb29ccb2daac03680d3 (patch) | |
tree | 494c548c06a3921b70b481fce270f482047ca148 /examples | |
parent | f0fe5bc0e46038dc79cdd27fcf0c77ad4789fdff (diff) |
Try to de-bork build of WPA
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/wpa/clang-wpa.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/wpa/clang-wpa.cpp b/examples/wpa/clang-wpa.cpp index ae789fa9ae..82d62e309e 100644 --- a/examples/wpa/clang-wpa.cpp +++ b/examples/wpa/clang-wpa.cpp @@ -39,7 +39,8 @@ int main(int argc, char **argv) { for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) { const std::string &InFile = InputFilenames[i]; - llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, *Diags)); + llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, + OwnedDiags(*Diags))); if (!AST) return 1; |