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