[llvm] [IR][NFC] Switch to use `LifetimeIntrinsic` (PR #125528)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 08:48:50 PST 2025


================
@@ -497,13 +497,8 @@ void collectMemAccessInfo(
       if (CallInst *CI = dyn_cast<CallInst>(&Inst))
         maybeMarkSanitizerLibraryCallNoBuiltin(CI, &TLI);
 
-      if (isa<MemIntrinsic>(Inst)) {
+      if (isa<MemIntrinsic>(Inst) || isa<LifetimeIntrinsic>(Inst))
----------------
fhahn wrote:

```suggestion
      if (isa<MemIntrinsic, LifetimeIntrinsic >(Inst))
```

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


More information about the llvm-commits mailing list