[PATCH] D116542: [OpenMP] Add a flag for embedding a file into the module
Jon Chesterfield via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 31 06:38:12 PST 2022
JonChesterfield added inline comments.
================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:1760
+ for (StringRef OffloadObject : CGOpts.OffloadObjects) {
+ auto FilenameAndSection = OffloadObject.split(',');
+ llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> ObjectOrErr =
----------------
Could we have a type here instead of auto? I'm trying to guess what a StringRef split might return and there seems to be a few choices. If it's a container of some sort we could error on size() != 2
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116542/new/
https://reviews.llvm.org/D116542
More information about the llvm-commits
mailing list