Return a pointer instead of having a pointer outparam and a bool return.

llvm-svn: 234590
This commit is contained in:
Rafael Espindola
2015-04-10 12:54:53 +00:00
parent 9b88fed323
commit 47de149565
3 changed files with 20 additions and 21 deletions

View File

@@ -966,9 +966,9 @@ PrecompilePreambleAction::CreateASTConsumer(CompilerInstance &CI,
StringRef InFile) {
std::string Sysroot;
std::string OutputFile;
raw_ostream *OS = nullptr;
if (GeneratePCHAction::ComputeASTConsumerArguments(CI, InFile, Sysroot,
OutputFile, OS))
raw_ostream *OS = GeneratePCHAction::ComputeASTConsumerArguments(
CI, InFile, Sysroot, OutputFile);
if (!OS)
return nullptr;
if (!CI.getFrontendOpts().RelocatablePCH)