================ @@ -4647,6 +4647,16 @@ void Driver::BuildDefaultActions(Compilation &C, DerivedArgList &Args, // Only add action when needValidation. const auto &TC = static_cast<const toolchains::HLSLToolChain &>(C.getDefaultToolChain()); + if (TC.requiresObjcopy(Args)) { + Action *LastAction = Actions.back(); + // llvm-objcopy expects a DXIL container, which can either be + // validated (in which case they are TY_DX_CONTAINER), or unvalidated + // (TY_OBJECT). ---------------- llvm-beanz wrote:
Didn't we confirm this should only run on unvalidated containers? https://github.com/llvm/llvm-project/pull/154454 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits