Skip to content

Commit 7bba9d3

Browse files
author
joaosaffran
committed
removing copies from root signature use in dx container globals
1 parent 01b49a7 commit 7bba9d3

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
@@ -154,14 +154,16 @@ void DXContainerGlobals::addRootSignature(Module &M,
154154
SmallVector<GlobalValue *> &Globals) {
155155

156156
auto &RSA = getAnalysis<RootSignatureAnalysisWrapper>();
157+
157158
if (!RSA.getResult())
158159
return;
159160

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

163165
RootSignatureHeader RSH;
164-
RSH.Flags = RSA.getResult()->Flags;
166+
RSH.Flags = MRS.Flags;
165167

166168
RSH.write(OS);
167169

0 commit comments

Comments
 (0)