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

Saiyedul Islam via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 8 10:12:35 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0f6cbdee5761: [clang-offload-bundler] fix "no output file" issue with -outputs (authored by scchan, committed by saiislam).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123387/new/

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.421572.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220408/57ea38c1/attachment.bin>


More information about the cfe-commits mailing list