diff --git a/liberty/Liberty.cc b/liberty/Liberty.cc index ed471745..b57b6083 100644 --- a/liberty/Liberty.cc +++ b/liberty/Liberty.cc @@ -3031,7 +3031,7 @@ scaleFactorTypeName(ScaleFactorType type) } ScaleFactorType -findScaleFactorType(const char *name) +findScaleFactorType(std::string_view name) { return scale_factor_type_map.find(name, ScaleFactorType::unknown); } @@ -3072,7 +3072,7 @@ EnumNameMap scale_factor_pvt_names = }; ScaleFactorPvt -findScaleFactorPvt(const char *name) +findScaleFactorPvt(std::string_view name) { return scale_factor_pvt_names.find(name, ScaleFactorPvt::unknown); }