[cfe-commits] r120069 - /cfe/trunk/examples/clang-interpreter/main.cpp

Eli Friedman eli.friedman at gmail.com
Tue Nov 23 16:32:51 PST 2010


Author: efriedma
Date: Tue Nov 23 18:32:51 2010
New Revision: 120069

URL: http://llvm.org/viewvc/llvm-project?rev=120069&view=rev
Log:
Unbreak clang-interpreter. (Should there be some automated testing for this?)


Modified:
    cfe/trunk/examples/clang-interpreter/main.cpp

Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=120069&r1=120068&r2=120069&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Nov 23 18:32:51 2010
@@ -74,7 +74,8 @@
   TextDiagnosticPrinter *DiagClient =
     new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions());
 
-  Diagnostic Diags(DiagClient);
+  llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
+  Diagnostic Diags(DiagID, DiagClient);
   Driver TheDriver(Path.str(), llvm::sys::getHostTriple(),
                    "a.out", /*IsProduction=*/false, /*CXXIsProduction=*/false,
                    Diags);





More information about the cfe-commits mailing list