[llvm] [SPIR-V] Propagate intrinsic param attributes to generated helper functions (PR #206061)

Juan Manuel Martinez CaamaƱo via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 04:53:23 PDT 2026


================
@@ -154,6 +153,10 @@ static bool lowerIntrinsicToFunction(IntrinsicInst *Intrinsic,
   F = dyn_cast<Function>(FC.getCallee());
   assert(F && "Callee must be a function");
----------------
jmmartinez wrote:

I know it's unrelated, but I couldn't hold myself:

```suggestion
F = cast<Function>(FC.getCallee());
```

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


More information about the llvm-commits mailing list