[clang] [llvm] [HLSL][DirectX] Correct codegen of `dx.load.input`/`dx.store.output` intrinsic calls (PR #212656)

Deric C. via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 13:47:45 PDT 2026


Icohedron wrote:

This seems to fail on bools.
```hlsl
 // test.hlsl
 [shader("vertex")]
 bool main(bool b : B) : A {
   return b;
 }
```
```
❯ bin/clang-dxc -T vs_6_8 test.hlsl
clang-dxc: /home/icohedron/hlsl-dev/llvm-project/llvm/lib/IR/Instructions.cpp:781: void llvm::CallInst::init(FunctionType *, Value *, ArrayRef<Value *>, ArrayRef<OperandBundleDef>, const Twine &): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
```

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


More information about the llvm-commits mailing list