File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,11 @@ namespace SPIRV {
184
184
// / Parses the name part of the demangled builtin call.
185
185
std::string lookupBuiltinNameHelper (StringRef DemangledCall,
186
186
FPDecorationId *DecorationId) {
187
- const static std::string PassPrefix = " (anonymous namespace)::" ;
187
+ StringRef PassPrefix = " (anonymous namespace)::" ;
188
188
std::string BuiltinName;
189
189
// 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 ());
192
192
else
193
193
BuiltinName = DemangledCall;
194
194
// Extract the builtin function name and types of arguments from the call
You can’t perform that action at this time.
0 commit comments