[clang] 0f6cbde - [clang-offload-bundler] fix "no output file" issue with -outputs
Saiyedul Islam via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 8 10:12:33 PDT 2022
Author: Siu Chi Chan
Date: 2022-04-08T17:11:27Z
New Revision: 0f6cbdee576160a3b40139bf66b864ce05a1e28f
URL: https://github.com/llvm/llvm-project/commit/0f6cbdee576160a3b40139bf66b864ce05a1e28f
DIFF: https://github.com/llvm/llvm-project/commit/0f6cbdee576160a3b40139bf66b864ce05a1e28f.diff
LOG: [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
Added:
Modified:
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Removed:
################################################################################
diff --git a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
index 6da77cccafbfc..1792923dd0159 100644
--- a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -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!"));
}
More information about the cfe-commits
mailing list