File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2207,9 +2207,9 @@ bool LowerTypeTestsModule::lower() {
2207
2207
bool IsExported = false ;
2208
2208
if (Function *F = dyn_cast<Function>(&GO)) {
2209
2209
IsJumpTableCanonical = isJumpTableCanonical (F);
2210
- if (ExportedFunctions.count (F->getName ())) {
2211
- IsJumpTableCanonical |=
2212
- ExportedFunctions[F-> getName ()] .Linkage == CFL_Definition;
2210
+ if (auto It = ExportedFunctions.find (F->getName ());
2211
+ It != ExportedFunctions. end ()) {
2212
+ IsJumpTableCanonical |= It-> second .Linkage == CFL_Definition;
2213
2213
IsExported = true ;
2214
2214
// TODO: The logic here checks only that the function is address taken,
2215
2215
// not that the address takers are live. This can be updated to check
@@ -2407,9 +2407,9 @@ bool LowerTypeTestsModule::lower() {
2407
2407
cast<MDString>(AliasMD->getOperand (0 ))->getString ();
2408
2408
StringRef Aliasee = cast<MDString>(AliasMD->getOperand (1 ))->getString ();
2409
2409
2410
- if (! ExportedFunctions.count (Aliasee) ||
2411
- ExportedFunctions[Aliasee]. Linkage != CFL_Definition ||
2412
- !M.getNamedAlias (Aliasee))
2410
+ if (auto It = ExportedFunctions.find (Aliasee);
2411
+ It == ExportedFunctions. end () ||
2412
+ It-> second . Linkage != CFL_Definition || !M.getNamedAlias (Aliasee))
2413
2413
continue ;
2414
2414
2415
2415
GlobalValue::VisibilityTypes Visibility =
You can’t perform that action at this time.
0 commit comments