[clang] [HLSL] Allow truncation to scalar (PR #104844)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 10 06:49:23 PDT 2024


llvm-beanz wrote:

> ExprConstant.cpp currently assumes that an CK_HLSLVectorTruncation can't return a scalar type.

Thank you for catching this! I've updated the PR and included a test that constant evaluates some vector truncations in static asserts.

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


More information about the cfe-commits mailing list