[llvm-branch-commits] [llvm] [MTE] [HWASan] support more complicated lifetimes (PR #182425)

Florian Mayer via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Feb 20 09:00:39 PST 2026


https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/182425

>From 4d05fb0ca56ed02aa4ce46620f1f9c91ac3a4d39 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Fri, 20 Feb 2026 09:00:24 -0800
Subject: [PATCH] fmt

Created using spr 1.3.7
---
 llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp b/llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
index 5ce3599779deb..b13e7353674bf 100644
--- a/llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
+++ b/llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
@@ -82,9 +82,8 @@ bool isSupportedLifetime(const AllocaInfo &AInfo, const DominatorTree *DT,
           LastEndBlocks.append(succ_begin(BB), succ_end(BB));
         else
           StartBlocks.insert(BB);
-        if (BBI.First == Intrinsic::lifetime_end) {
+        if (BBI.First == Intrinsic::lifetime_end)
           FirstEndBlocks.insert(BB);
-        }
         return BBI.DoubleEnd;
       }))
     return false;



More information about the llvm-branch-commits mailing list