]> granicus.if.org Git - clang/commitdiff
Try to de-bork build of WPA
authorDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:47:24 +0000 (21:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 5 Apr 2010 21:47:24 +0000 (21:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100475 91177308-0d34-0410-b5e6-96231b3b80d8

examples/wpa/clang-wpa.cpp

index ae789fa9ae3cfd1675c28f04f84b265c4e1ee4a7..82d62e309e72ca455e90fdebf8b09d5863ad0845 100644 (file)
@@ -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;