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:
Mehdi Amini 2019-05-10 09:21:37 -07:00 committed by Mehdi Amini
parent b42747eec2
commit 1d309e0082
1 changed files with 1 additions and 1 deletions

View File

@ -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);