a4055240375585337d1569a9539a17b2f44caa6e / dev-libs/rocm-comgr/files/rocm-comgr-10.1-llvm-24-clang-api.patch · 802 bytes · raw
clang's driver no longer has Action::OffloadUnbundlingJobClass (the unbundling
action class was dropped upstream). Return a class above the clang job classes,
as SPIRVCommand already does, so the cache's command class stays distinct.
--- a/src/comgr-unbundle-command.cpp
+++ b/src/comgr-unbundle-command.cpp
@@ -121,7 +121,10 @@
}
CachedCommandAdaptor::ActionClass UnbundleCommand::getClass() const {
- return clang::driver::Action::OffloadUnbundlingJobClass;
+ // clang's driver no longer has an OffloadUnbundlingJobClass action, so return
+ // a class above the clang job classes (as SPIRVCommand does) to keep the
+ // cache's command class distinct.
+ return clang::driver::Action::ActionClass::JobClassLast + 2;
}
void UnbundleCommand::addOptionsIdentifier(HashAlgorithm &H) const {