[clang] [HLSL][OpenCL] Strip addrspace from implicit cast diags (PR #135830)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 12:02:04 PDT 2025
================
@@ -11360,6 +11360,14 @@ static void AnalyzeAssignment(Sema &S, BinaryOperator *E) {
static void DiagnoseImpCast(Sema &S, Expr *E, QualType SourceType, QualType T,
SourceLocation CContext, unsigned diag,
bool pruneControlFlow = false) {
+ // For languages like HLSL and OpenCL, implicit conversion diagnostics listing
----------------
llvm-beanz wrote:
No, this should apply everywhere (although it almost certainly doesn't impact C/C++ because they don't really have address spaces).
https://github.com/llvm/llvm-project/pull/135830
More information about the cfe-commits
mailing list