From a88867a085e0f6cc93dfd291e1f3bdba3a5b4a97 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 28 Oct 2021 09:38:25 -0700 Subject: [PATCH] [IR] Fix a warning This patch fixes: mlir/lib/IR/BuiltinAttributes.cpp:876:39: error: unused function 'isComplexOfIntType' [-Werror,-Wunused-function] in a release build. --- mlir/lib/IR/BuiltinAttributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/IR/BuiltinAttributes.cpp b/mlir/lib/IR/BuiltinAttributes.cpp index 9bb90a0..fe8f6a5 100644 --- a/mlir/lib/IR/BuiltinAttributes.cpp +++ b/mlir/lib/IR/BuiltinAttributes.cpp @@ -873,7 +873,7 @@ bool DenseElementsAttr::isSplat() const { } /// Return if the given complex type has an integer element type. -static bool isComplexOfIntType(Type type) { +LLVM_ATTRIBUTE_UNUSED static bool isComplexOfIntType(Type type) { return type.cast().getElementType().isa(); } -- 2.7.4