clang-wpa fixes for Diagnostic

llvm-svn: 100518
This commit is contained in:
Douglas Gregor 2010-04-06 04:03:12 +00:00
parent 2ae30e864d
commit 6314641822
1 changed files with 2 additions and 4 deletions

View File

@ -35,10 +35,8 @@ int main(int argc, char **argv) {
return 0; return 0;
DiagnosticOptions DiagOpts; DiagnosticOptions DiagOpts;
llvm::OwningPtr<Diagnostic> Diags( llvm::IntrusiveRefCntPtr<Diagnostic> Diags
CompilerInstance::createDiagnostics(DiagOpts, argc, argv)); = CompilerInstance::createDiagnostics(DiagOpts, argc, argv);
llvm::IntrusiveRefCntPtr<Diagnostic> Diags(new Diagnostic);
for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) { for (unsigned i = 0, e = InputFilenames.size(); i != e; ++i) {
const std::string &InFile = InputFilenames[i]; const std::string &InFile = InputFilenames[i];
llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, Diags)); llvm::OwningPtr<ASTUnit> AST(ASTUnit::LoadFromPCHFile(InFile, Diags));