Make header-defined method inline instead of static (NFC)

This is fixing a clang warning when this header is included in a file
    that does not use this function.

--

PiperOrigin-RevId: 247557803
This commit is contained in:
Mehdi Amini 2019-05-09 23:00:59 -07:00 committed by Mehdi Amini
parent 6459c821bf
commit 52d0dbbd2a
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ mlir::AffineMap linalg::operandRangesToLoopsMap(
// 2. If it is rank-reducing, an offset of 1 is added to the dimensions such
// that `d >= slicingDim`. This is to account for the rank reduction.
// `getRootIndex` is then called on the **parent** view
static llvm::SmallVector<mlir::Value *, 8>
inline llvm::SmallVector<mlir::Value *, 8>
extractRangesFromViewOrSliceOp(mlir::Value *view) {
// This expects a viewType which must come from either ViewOp or SliceOp.
assert(view->getType().isa<linalg::ViewType>() && "expected ViewType");