search for: resultelementtype

Displaying 1 result from an estimated 1 matches for "resultelementtype".

2019 Oct 21
2
How to create vector pointer type?
...rTy() ){ &nbsp; &nbsp; PointerType *PointerTy = dyn_cast<PointerType&gt;(Ty); &nbsp; &nbsp; Type *vt = PointerTy-&gt;getElementType(); &nbsp; &nbsp; a = vt-&gt;isVectorTy(); &nbsp; } &nbsp; return a; } Then meet the following error: Assertion failed: ResultElementType == cast<PointerType&gt;(getType()-&gt;getScalarType())-&gt;getElementType(), file D:\cygwin64\home\celine\clang-102\llvm\include\llvm/IR/Instructions.h, line 958 I wonder how to create vector pointer type correctly? -- Best Regards, Celine -------------- next part --------------...