mirror of https://github.com/llvm/circt.git
[NFC] Convert static method to static inline. Fix warning.
This commit is contained in:
parent
2a610a5ea5
commit
62eb69aa82
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue