[clang][extract-api][NFC] Don't remap the generated input buffer in PPOpts

This was triggering some build failures so removing this change for now.
This commit is contained in:
Daniel Grumberg 2022-03-30 20:38:09 +01:00
parent 72517e27c1
commit 985eaa1a3d
1 changed files with 2 additions and 6 deletions

View File

@ -617,17 +617,13 @@ bool ExtractAPIAction::PrepareToExecuteAction(CompilerInstance &CI) {
HeaderContents += "\"\n";
}
auto Buffer = llvm::MemoryBuffer::getMemBufferCopy(HeaderContents,
getInputBufferName());
Buffer = llvm::MemoryBuffer::getMemBufferCopy(HeaderContents,
getInputBufferName());
// Set that buffer up as our "real" input in the CompilerInstance.
Inputs.clear();
Inputs.emplace_back(Buffer->getMemBufferRef(), Kind, /*IsSystem*/ false);
// Tell the processor about the input file.
CI.getPreprocessorOpts().addRemappedFile(Buffer->getBufferIdentifier(),
Buffer.release());
return true;
}