Issue 114868
Summary Correct Printing of Pointers and References to Vectors
Labels new issue
Assignees
Reporter pow2clk
    The order in which vector type elements are printed results in the `*` or `&` operand being placed such that it might be interpreted not as a pointer to a vector, but as a vector of pointers to the element type. See this [example](https://godbolt.org/z/jqa3d3n4K) in the diagnostic output and potentially follow this [discussion](https://github.com/llvm/llvm-project/pull/111415#discussion_r1795133310) that motivated the issue.

The solution is pretty simple and involves printing most of the vector elements in the `Before` function. This will impact a few tests that depend on the current ordering where, rather than the `__private` qualifier such as in this OpenCL [test](https://github.com/llvm/llvm-project/blob/main/clang/test/Index/opencl-types.cl).

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to