Skip to content

Commit ec10765

Browse files
committed
[COMGR][NFC] Use copy constructor instead of pushing elements one by one
Change-Id: Ifafa33f7538c414e24fdf892994c96c7a9cef743
1 parent 8b162df commit ec10765

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

amd/comgr/src/comgr-compiler.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,7 @@ amd_comgr_status_t AMDGPUCompiler::executeOutOfProcessHIPCompilation(
877877

878878
amd_comgr_status_t AMDGPUCompiler::processFile(const char *InputFilePath,
879879
const char *OutputFilePath) {
880-
SmallVector<const char *, 128> Argv;
881-
882-
for (auto &Arg : Args) {
883-
Argv.push_back(Arg);
884-
}
880+
SmallVector<const char *, 128> Argv = Args;
885881

886882
for (auto &Option : ActionInfo->getOptions()) {
887883
Argv.push_back(Option.c_str());

0 commit comments

Comments
 (0)