File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -187,19 +187,22 @@ PreservedAnalyses RootSignatureAnalysisPrinter::run(Module &M,
187
187
<< " \n " ;
188
188
uint8_t Space = 0 ;
189
189
for (const auto &F : M) {
190
- const auto RSD = RSDMap.at (&F);
190
+ const auto &RSD = RSDMap.find (&F);
191
+ if (RSD == RSDMap.end ())
192
+ continue ;
193
+ const auto &RS = RSD->second ;
191
194
OS << " Definition for '" << F.getName () << " ':\n " ;
192
195
193
196
// start root signature header
194
197
Space++;
195
- OS << indent (Space) << " Flags: " << format_hex (RSD .Flags , 8 ) << " :\n " ;
196
- OS << indent (Space) << " Version: " << RSD .Version << " :\n " ;
197
- OS << indent (Space) << " NumParameters: " << RSD .NumParameters << " :\n " ;
198
- OS << indent (Space) << " RootParametersOffset: " << RSD .RootParametersOffset
198
+ OS << indent (Space) << " Flags: " << format_hex (RS .Flags , 8 ) << " :\n " ;
199
+ OS << indent (Space) << " Version: " << RS .Version << " :\n " ;
200
+ OS << indent (Space) << " NumParameters: " << RS .NumParameters << " :\n " ;
201
+ OS << indent (Space) << " RootParametersOffset: " << RS .RootParametersOffset
199
202
<< " :\n " ;
200
- OS << indent (Space) << " NumStaticSamplers: " << RSD .NumStaticSamplers
203
+ OS << indent (Space) << " NumStaticSamplers: " << RS .NumStaticSamplers
201
204
<< " :\n " ;
202
- OS << indent (Space) << " StaticSamplersOffset: " << RSD .StaticSamplersOffset
205
+ OS << indent (Space) << " StaticSamplersOffset: " << RS .StaticSamplersOffset
203
206
<< " :\n " ;
204
207
Space--;
205
208
// end root signature header
You can’t perform that action at this time.
0 commit comments