[NFC] Convert static method to static inline. Fix warning.

This commit is contained in:
Will Dietz 2023-09-11 11:25:33 -05:00
parent 2a610a5ea5
commit 62eb69aa82
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ namespace parsing_util {
/// Get a name from an SSA value string, if said value name is not a
/// number.
static StringAttr getNameFromSSA(MLIRContext *context, StringRef name) {
static inline StringAttr getNameFromSSA(MLIRContext *context, StringRef name) {
if (!name.empty()) {
// Ignore numeric names like %42
assert(name.size() > 1 && name[0] == '%' && "Unknown MLIR name");