Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Changes required for https://reviews.llvm.org/D116011
Browse files Browse the repository at this point in the history
Change-Id: I6cbec349cf1292a74a8a9f9668b96e90ffedbde7
  • Loading branch information
kzhuravl committed Dec 22, 2021
1 parent 675501d commit a75326c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/comgr/src/comgr-compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,9 @@ AMDGPUCompiler::executeInProcessDriver(ArrayRef<const char *> Args) {
}
std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
Clang->setVerboseOutputStream(LogS);
if (!Argv.back()) {
Argv.pop_back();
}
if (!CompilerInvocation::CreateFromArgs(Clang->getInvocation(), Argv,
Diags)) {
return AMD_COMGR_STATUS_ERROR;
Expand All @@ -699,6 +702,9 @@ AMDGPUCompiler::executeInProcessDriver(ArrayRef<const char *> Args) {
logArgv(LogS, "clang", Argv);
}
Argv.erase(Argv.begin() + 1);
if (!Argv.back()) {
Argv.pop_back();
}
AssemblerInvocation Asm;
if (!AssemblerInvocation::createFromArgs(Asm, Argv, Diags)) {
return AMD_COMGR_STATUS_ERROR;
Expand Down

0 comments on commit a75326c

Please sign in to comment.