diff options
author | Kazu Hirata <kazu@google.com> | 2021-10-28 09:38:25 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-10-28 09:38:25 -0700 |
commit | a88867a085e0f6cc93dfd291e1f3bdba3a5b4a97 (patch) | |
tree | 842f68ab57130a29a46ed99d5ff1bd46f0025847 | |
parent | 6caff716dab43d30e7b6fa03ff1c47d325d3b8d7 (diff) | |
download | llvm-a88867a085e0f6cc93dfd291e1f3bdba3a5b4a97.tar.gz |
[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.
-rw-r--r-- | mlir/lib/IR/BuiltinAttributes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/IR/BuiltinAttributes.cpp b/mlir/lib/IR/BuiltinAttributes.cpp index 9bb90a035e34..fe8f6a54d82f 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<ComplexType>().getElementType().isa<IntegerType>(); } |