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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to