Skip to content

Commit b2c2fef

Browse files
committed
[X86] Fix -Wunused-function in X86ISelLowering.cpp (NFC)
llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:3582:13: error: unused function 'isBlendOrUndef' [-Werror,-Wunused-function] static bool isBlendOrUndef(ArrayRef<int> Mask) { ^ 1 error generated.
1 parent a924199 commit b2c2fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3579,7 +3579,7 @@ static bool isUndefOrZeroOrInRange(ArrayRef<int> Mask, int Low, int Hi) {
35793579

35803580
/// Return true if every element in Mask, is an in-place blend/select mask or is
35813581
/// undef.
3582-
static bool isBlendOrUndef(ArrayRef<int> Mask) {
3582+
LLVM_ATTRIBUTE_UNUSED static bool isBlendOrUndef(ArrayRef<int> Mask) {
35833583
unsigned NumElts = Mask.size();
35843584
for (auto [I, M] : enumerate(Mask))
35853585
if (!isUndefOrEqual(M, I) && !isUndefOrEqual(M, I + NumElts))

0 commit comments

Comments
 (0)