Skip to content

Commit e8252ba

Browse files
author
joaosaffran
committed
reapply rebase fix
1 parent 9ed2adc commit e8252ba

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,12 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
192192
OS << "Root Signature Definitions"
193193
<< "\n";
194194
uint8_t Space = 0;
195-
for (const auto &P : RSDMap) {
196-
const auto &[Function, RSD] = P;
197-
OS << "Definition for '" << Function->getName() << "':\n";
195+
for (const Function &F : M) {
196+
auto It = RSDMap.find(&F);
197+
if (It == RSDMap.end())
198+
continue;
199+
const auto &RS = It->second;
200+
OS << "Definition for '" << F.getName() << "':\n";
198201

199202
// start root signature header
200203
Space++;

0 commit comments

Comments
 (0)