[llvm] [FIX] Fix sanitizer-aarch64-linux build after commit 8472eb1361bbabd6… (PR #148206)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 11 03:52:43 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-aarch64

Author: Sergey Shcherbinin (SergeyShch01)

<details>
<summary>Changes</summary>

The previous commit 8472eb1361bbabd6428a65da446618503e439743 broke the sanitizer-aarch64-linux builder.

This patch fixes it: unsued variable is removed



---
Full diff: https://github.com/llvm/llvm-project/pull/148206.diff


1 Files Affected:

- (modified) llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (-1) 


``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index edbc3d8c3f614..e6b22695761e7 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -2569,7 +2569,6 @@ MachineBasicBlock::iterator AArch64LoadStoreOpt::findMatchingUpdateInsnForward(
     // such that BaseReg is alive along it but not at its exits
     MachineBasicBlock *SuccToVisit = nullptr;
     unsigned LiveSuccCount = 0;
-    MCRegister RegNoBAse = BaseReg;
     for (MachineBasicBlock *Succ : CurMBB->successors()) {
       for (MCRegAliasIterator AI(BaseReg, TRI, true); AI.isValid(); ++AI) {
         if (Succ->isLiveIn(*AI)) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/148206


More information about the llvm-commits mailing list