File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,11 @@ namespace SPIRV {
184184// / Parses the name part of the demangled builtin call.
185185std::string lookupBuiltinNameHelper (StringRef DemangledCall,
186186 FPDecorationId *DecorationId) {
187- const static std::string PassPrefix = " (anonymous namespace)::" ;
187+ StringRef PassPrefix = " (anonymous namespace)::" ;
188188 std::string BuiltinName;
189189 // Itanium Demangler result may have "(anonymous namespace)::" prefix
190- if (DemangledCall.starts_with (PassPrefix. c_str () ))
191- BuiltinName = DemangledCall.substr (PassPrefix.length ());
190+ if (DemangledCall.starts_with (PassPrefix))
191+ BuiltinName = DemangledCall.substr (PassPrefix.size ());
192192 else
193193 BuiltinName = DemangledCall;
194194 // Extract the builtin function name and types of arguments from the call
You can’t perform that action at this time.
0 commit comments