Skip to content

Commit 9f005eb

Browse files
author
joaosaffran
committed
improve code style
1 parent fb2aeee commit 9f005eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/DirectX/DXILRootSignature.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
186186
OS << "Root Signature Definitions"
187187
<< "\n";
188188
uint8_t Space = 0;
189-
for (const auto &F : M) {
190-
const auto &RSD = RSDMap.find(&F);
191-
if (RSD == RSDMap.end())
189+
for (const Function &F : M) {
190+
auto It = RSDMap.find(&F);
191+
if (It == RSDMap.end())
192192
continue;
193-
const auto &RS = RSD->second;
193+
const auto &RS = It->second;
194194
OS << "Definition for '" << F.getName() << "':\n";
195195

196196
// start root signature header

0 commit comments

Comments
 (0)