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!")); }
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!")); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits