[clang] [llvm] [HLSL][RootSignature] Retain `SourceLocation` of `RootElement` for `SemaHLSL` diagnostics (PR #147115)

Bevin Hansson via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 06:04:03 PDT 2025


bevin-hansson wrote:

Hi @inbelic ! We're seeing some failures with -DLLVM_ENABLE_EXPENSIVE_CHECKS turned on with this patch. It seems like the diagnostics in SemaHLSL/RootSignature-resource-ranges-err.hlsl end up being printed in a different order from what FileCheck expects.

I thought it might be because of the llvm::sort on SemaHLSL.cpp:1159, but changing it to llvm::stable_sort did not help.

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


More information about the llvm-commits mailing list