We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent debb7cc commit 991bbc7Copy full SHA for 991bbc7
tools/clang/tools/dxcompiler/dxcutil.cpp
@@ -151,6 +151,10 @@ HRESULT ValidateAndAssembleToContainer(AssembleInputs &inputs) {
151
CComPtr<IDxcValidator> pValidator;
152
CreateValidator(pValidator);
153
154
+ if (llvm::getDebugMetadataVersionFromModule(*inputs.pM) != 0) {
155
+ llvmModuleWithDebugInfo.reset(llvm::CloneModule(inputs.pM.get()));
156
+ }
157
+
158
// Verify validator version can validate this module
159
CComPtr<IDxcVersionInfo> pValidatorVersion;
160
IFT(pValidator->QueryInterface(&pValidatorVersion));
0 commit comments