[llvm] [ARM][KFCI] Fix unused variable for #163698 (PR #164857)
Walter Lee via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 23 10:37:39 PDT 2025
https://github.com/googlewalt created https://github.com/llvm/llvm-project/pull/164857
None
>From 14584a9fd29381b41d172ded564d72aa14af592c Mon Sep 17 00:00:00 2001
From: Walter Lee <waltl at google.com>
Date: Thu, 23 Oct 2025 13:35:08 -0400
Subject: [PATCH] [ARM][KFCI] Fix unused variable for #163698
---
llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 8e35cadb75857..958a595874b9c 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -1640,7 +1640,9 @@ void ARMAsmPrinter::EmitKCFI_CHECK_Thumb2(Register AddrReg, int64_t Type,
bool isLast = (i == 3);
// Verify the immediate can be encoded as Thumb2 modified immediate.
+#ifndef NDEBUG
int T2SOImmVal = ARM_AM::getT2SOImmVal(imm);
+#endif // NDEBUG
assert(T2SOImmVal != -1 &&
"Cannot encode immediate as Thumb2 modified immediate");
More information about the llvm-commits
mailing list