[llvm] [DXIL] Fix build warning (PR #90226)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 08:55:12 PDT 2024


https://github.com/farzonl created https://github.com/llvm/llvm-project/pull/90226

None

>From 430df83452c9c4ef3ea7b73c40c2bf3e2507ff5b Mon Sep 17 00:00:00 2001
From: Farzon Lotfi <farzonlotfi at microsoft.com>
Date: Fri, 26 Apr 2024 11:52:29 -0400
Subject: [PATCH] [DXIL] Fix build warning

---
 llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
index 4d99bc00690053..4b162a35365c8e 100644
--- a/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
+++ b/llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
@@ -77,8 +77,8 @@ static bool expandIntegerDot(CallInst *Orig, Intrinsic::ID DotIntrinsic) {
                                    : Intrinsic::dx_umad;
   Value *A = Orig->getOperand(0);
   Value *B = Orig->getOperand(1);
-  Type *ATy = A->getType();
-  Type *BTy = B->getType();
+  [[maybe_unused]] Type *ATy = A->getType();
+  [[maybe_unused]] Type *BTy = B->getType();
   assert(ATy->isVectorTy() && BTy->isVectorTy());
 
   IRBuilder<> Builder(Orig->getParent());



More information about the llvm-commits mailing list