Skip to content

Commit f8ff016

Browse files
committed
review: add assert
1 parent f3f3a07 commit f8ff016

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/HLSL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ void tools::LLVMObjcopy::ConstructJob(Compilation &C, const JobAction &JA,
315315
CmdArgs.push_back(Frs);
316316
}
317317

318+
assert(CmdArgs.size() > 2 && "Unnecessary invocation of objcopy.");
319+
318320
C.addCommand(std::make_unique<Command>(JA, *this, ResponseFileSupport::None(),
319321
Exec, CmdArgs, Inputs, Input));
320322
}

0 commit comments

Comments
 (0)