r260843 - [index] Fix gcc builds.

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 13 22:53:20 PST 2016


Author: akirtzidis
Date: Sun Feb 14 00:53:20 2016
New Revision: 260843

URL: http://llvm.org/viewvc/llvm-project?rev=260843&view=rev
Log:
[index] Fix gcc builds.

Modified:
    cfe/trunk/include/clang/Index/IndexingAction.h
    cfe/trunk/tools/c-index-test/core_main.cpp

Modified: cfe/trunk/include/clang/Index/IndexingAction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Index/IndexingAction.h?rev=260843&r1=260842&r2=260843&view=diff
==============================================================================
--- cfe/trunk/include/clang/Index/IndexingAction.h (original)
+++ cfe/trunk/include/clang/Index/IndexingAction.h Sun Feb 14 00:53:20 2016
@@ -36,7 +36,7 @@ struct IndexingOptions {
 std::unique_ptr<FrontendAction>
 createIndexingAction(std::shared_ptr<IndexDataConsumer> DataConsumer,
                      IndexingOptions Opts,
-                     std::unique_ptr<FrontendAction> WrappedAction = nullptr);
+                     std::unique_ptr<FrontendAction> WrappedAction);
 
 void indexASTUnit(ASTUnit &Unit,
                   std::shared_ptr<IndexDataConsumer> DataConsumer,

Modified: cfe/trunk/tools/c-index-test/core_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/core_main.cpp?rev=260843&r1=260842&r2=260843&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/core_main.cpp (original)
+++ cfe/trunk/tools/c-index-test/core_main.cpp Sun Feb 14 00:53:20 2016
@@ -119,7 +119,8 @@ static bool printSourceSymbols(ArrayRef<
   auto DataConsumer = std::make_shared<PrintIndexDataConsumer>(outs());
   IndexingOptions IndexOpts;
   std::unique_ptr<FrontendAction> IndexAction;
-  IndexAction = createIndexingAction(DataConsumer, IndexOpts);
+  IndexAction = createIndexingAction(DataConsumer, IndexOpts,
+                                     /*WrappedAction=*/nullptr);
 
   auto PCHContainerOps = std::make_shared<PCHContainerOperations>();
   ASTUnit *Unit =




More information about the cfe-commits mailing list