[PATCH] D148908: [Driver][NFC] Simplify code.
Jianjian Guan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 22 19:57:05 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8e3a5a965a14: [Driver][NFC] Simplify code. (authored by jacquesguan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148908/new/
https://reviews.llvm.org/D148908
Files:
clang/lib/Driver/Driver.cpp
Index: clang/lib/Driver/Driver.cpp
===================================================================
--- clang/lib/Driver/Driver.cpp
+++ clang/lib/Driver/Driver.cpp
@@ -4095,16 +4095,15 @@
Current = NewCurrent;
- // Use the current host action in any of the offloading actions, if
- // required.
- if (!UseNewOffloadingDriver)
- if (OffloadBuilder->addHostDependenceToDeviceActions(Current, InputArg))
- break;
-
// Try to build the offloading actions and add the result as a dependency
// to the host.
if (UseNewOffloadingDriver)
Current = BuildOffloadingActions(C, Args, I, Current);
+ // Use the current host action in any of the offloading actions, if
+ // required.
+ else if (OffloadBuilder->addHostDependenceToDeviceActions(Current,
+ InputArg))
+ break;
if (Current->getType() == types::TY_Nothing)
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148908.516112.patch
Type: text/x-patch
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230423/921afb5a/attachment-0001.bin>
More information about the cfe-commits
mailing list