[PATCH] D133133: [CUDA] Allow using -o with -fsyntax-only
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 1 12:37:04 PDT 2022
jhuber6 accepted this revision.
jhuber6 added a comment.
This revision is now accepted and ready to land.
LG, thanks.
================
Comment at: clang/lib/Driver/Driver.cpp:4555
else if (A->getKind() == Action::OffloadClass &&
- A->getType() == types::TY_Nothing)
+ A->getType() == types::TY_Nothing && !SyntaxOnly)
NumOutputs += A->size();
----------------
Might be cleaner since we only use this once and it's explained by the comment above, up to you.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133133/new/
https://reviews.llvm.org/D133133
More information about the cfe-commits
mailing list