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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 08:29:23 PST 2025


================
@@ -535,13 +535,10 @@ void CodeExtractor::findAllocas(const CodeExtractorAnalysisCache &CEAC,
 
       Instruction *Bitcast = cast<Instruction>(U);
       for (User *BU : Bitcast->users()) {
-        IntrinsicInst *IntrInst = dyn_cast<IntrinsicInst>(BU);
+        IntrinsicInst *IntrInst = dyn_cast<LifetimeIntrinsic>(BU);
----------------
nikic wrote:

```suggestion
        auto *IntrInst = dyn_cast<LifetimeIntrinsic>(BU);
```

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


More information about the llvm-commits mailing list