Skip to content

Commit

Permalink
[clang-offload-bundler] fix "no output file" issue with -outputs
Browse files Browse the repository at this point in the history
Fix backward compatibility issue due to D120662.

Change-Id: I7cd0f704aabbaac7dcf59fd4b73b4f0e0cdfa69f

Reviewed By: yaxunl, saiislam

Differential Revision: https://reviews.llvm.org/D123387
  • Loading branch information
scchan authored and saiislam committed Apr 8, 2022
1 parent b22ffc7 commit 0f6cbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Expand Up @@ -1450,7 +1450,7 @@ int main(int argc, const char **argv) {
return 0;
}

if (OutputFileNames.getNumOccurrences() == 0) {
if (OutputFileNames.size() == 0) {
reportError(
createStringError(errc::invalid_argument, "no output file specified!"));
}
Expand Down

0 comments on commit 0f6cbde

Please sign in to comment.