[clang] [HLSL] Allow narrowing in initialization lists (PR #108035)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 10:03:24 PDT 2024
llvm-beanz wrote:
> looks fine. Curious, why is this extra RUN: line added? Doesn't the other one already contain the same parameters `-ast-dump -o - %s | FileCheck %s` ?
>
> RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -ast-dump -o - %s | FileCheck %s
The diff is a bit awkward to read, but the second run line adds `-std=hlsl202x` to explicitly run under 202x, which (before this change) treated narrowing conversion in initializer lists as an error.
https://github.com/llvm/llvm-project/pull/108035
More information about the cfe-commits
mailing list