forked from OSchip/llvm-project
Let new test from r350340 still pass even after r350451.
llvm-svn: 350453
This commit is contained in:
parent
383be892fc
commit
b215d0731a
|
@ -152,10 +152,6 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI,
|
|||
if (!Consumer)
|
||||
return nullptr;
|
||||
|
||||
// If there are no registered plugins we don't need to wrap the consumer
|
||||
if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end())
|
||||
return Consumer;
|
||||
|
||||
// Validate -add-plugin args.
|
||||
bool FoundAllPlugins = true;
|
||||
for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) {
|
||||
|
@ -174,6 +170,10 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI,
|
|||
if (!FoundAllPlugins)
|
||||
return nullptr;
|
||||
|
||||
// If there are no registered plugins we don't need to wrap the consumer
|
||||
if (FrontendPluginRegistry::begin() == FrontendPluginRegistry::end())
|
||||
return Consumer;
|
||||
|
||||
// If this is a code completion run, avoid invoking the plugin consumers
|
||||
if (CI.hasCodeCompletionConsumer())
|
||||
return Consumer;
|
||||
|
|
Loading…
Reference in New Issue