Skip to content

Commit b5208e8

Browse files
author
joaosaffran
committed
removing copies from root signature use in dx container globals
1 parent 36746f5 commit b5208e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/DirectX/DXContainerGlobals.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,16 @@ void DXContainerGlobals::addRootSignature(Module &M,
155155
SmallVector<GlobalValue *> &Globals) {
156156

157157
auto &RSA = getAnalysis<RootSignatureAnalysisWrapper>();
158+
158159
if (!RSA.getResult())
159160
return;
160161

162+
const ModuleRootSignature &MRS = RSA.getResult().value();
161163
SmallString<256> Data;
162164
raw_svector_ostream OS(Data);
163165

164166
RootSignatureHeader RSH;
165-
RSH.Flags = RSA.getResult()->Flags;
167+
RSH.Flags = MRS.Flags;
166168

167169
RSH.write(OS);
168170

0 commit comments

Comments
 (0)