[PATCH] D123387: [clang-offload-bundler] fix "no output file" issue with -outputs

Siu Chi Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 06:41:05 PDT 2022


scchan created this revision.
scchan added reviewers: yaxunl, saiislam, ronlieb.
Herald added a project: All.
scchan requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Fix backward compatibility issue due to D120662 <https://reviews.llvm.org/D120662>.

Change-Id: I7cd0f704aabbaac7dcf59fd4b73b4f0e0cdfa69f


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123387

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


Index: clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
===================================================================
--- clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -1450,7 +1450,7 @@
     return 0;
   }
 
-  if (OutputFileNames.getNumOccurrences() == 0) {
+  if (OutputFileNames.size() == 0) {
     reportError(
         createStringError(errc::invalid_argument, "no output file specified!"));
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123387.421510.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220408/3a257dce/attachment.bin>


More information about the cfe-commits mailing list