Skip to content

Commit 0f6cbde

Browse files
scchansaiislam
authored andcommitted
[clang-offload-bundler] fix "no output file" issue with -outputs
Fix backward compatibility issue due to D120662. Change-Id: I7cd0f704aabbaac7dcf59fd4b73b4f0e0cdfa69f Reviewed By: yaxunl, saiislam Differential Revision: https://reviews.llvm.org/D123387
1 parent b22ffc7 commit 0f6cbde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ int main(int argc, const char **argv) {
14501450
return 0;
14511451
}
14521452

1453-
if (OutputFileNames.getNumOccurrences() == 0) {
1453+
if (OutputFileNames.size() == 0) {
14541454
reportError(
14551455
createStringError(errc::invalid_argument, "no output file specified!"));
14561456
}

0 commit comments

Comments
 (0)