forked from OSchip/llvm-project
Make header-defined function inline instead of static (NFC)
Fix warning for unused function when the header is included in an implementation file that does not use this function. -- PiperOrigin-RevId: 247622232
This commit is contained in:
parent
b42747eec2
commit
1d309e0082
|
@ -95,7 +95,7 @@ private:
|
|||
/// a plain walk over operations to match flat patterns but the current
|
||||
/// implementation is competitive nonetheless.
|
||||
using FilterFunctionType = std::function<bool(Operation &)>;
|
||||
static bool defaultFilterFunction(Operation &) { return true; }
|
||||
inline bool defaultFilterFunction(Operation &) { return true; }
|
||||
struct NestedPattern {
|
||||
NestedPattern(ArrayRef<NestedPattern> nested,
|
||||
FilterFunctionType filter = defaultFilterFunction);
|
||||
|
|
Loading…
Reference in New Issue