forked from OSchip/llvm-project
[MILR][NFC] Silence clang-tidy warning in AffineOps.cpp
Silence clang-tidy warning in AffineOps.cpp due to the inability to see through the typeswitch. NFC. Differential Revision: https://reviews.llvm.org/D106125
This commit is contained in:
parent
77ebfba68b
commit
3d63d1a390
|
@ -107,9 +107,12 @@ static bool remainsLegalAfterInline(OpTy op, Region *src, Region *dest,
|
|||
|
||||
/// Checks if an affine apply operation remains legal after inlining from `src`
|
||||
/// to `dest`.
|
||||
// Use "unused attribute" marker to silence clang-tidy warning stemming from
|
||||
// the inability to see through "llvm::TypeSwitch".
|
||||
template <>
|
||||
bool remainsLegalAfterInline(AffineApplyOp op, Region *src, Region *dest,
|
||||
const BlockAndValueMapping &mapping) {
|
||||
bool LLVM_ATTRIBUTE_UNUSED
|
||||
remainsLegalAfterInline(AffineApplyOp op, Region *src, Region *dest,
|
||||
const BlockAndValueMapping &mapping) {
|
||||
// If it's a valid dimension, we need to check that it remains so.
|
||||
if (isValidDim(op.getResult(), src))
|
||||
return remainsLegalAfterInline(
|
||||
|
|
Loading…
Reference in New Issue