diff options
author | Sarah Spall <sarahspall@microsoft.com> | 2025-02-07 09:12:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-07 09:12:55 -0800 |
commit | 3f8e2802069aabe4384ecd4575d50fd4457dae51 (patch) | |
tree | 14ae648006ca139515c42c0cd0fb02cb60c7829f /clang/lib/Edit/RewriteObjCFoundationAPI.cpp | |
parent | 4d7192a5ecabb36263a2cacd4e9243b958424805 (diff) | |
download | llvm-3f8e2802069aabe4384ecd4575d50fd4457dae51.zip llvm-3f8e2802069aabe4384ecd4575d50fd4457dae51.tar.gz llvm-3f8e2802069aabe4384ecd4575d50fd4457dae51.tar.bz2 |
[HLSL] Implement HLSL Elementwise casting (excluding splat cases); Re-land #118842 (#126258)
Implement HLSLElementwiseCast excluding support for splat cases
Do not support casting types that contain bitfields.
Partly closes https://github.com/llvm/llvm-project/issues/100609 and
partly closes https://github.com/llvm/llvm-project/issues/100619
Re-land #118842 after fixing warning as an error, found by a buildbot.
Diffstat (limited to 'clang/lib/Edit/RewriteObjCFoundationAPI.cpp')
-rw-r--r-- | clang/lib/Edit/RewriteObjCFoundationAPI.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp index 81797c8..32f5ebb 100644 --- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp @@ -1085,6 +1085,7 @@ static bool rewriteToNumericBoxedExpression(const ObjCMessageExpr *Msg, llvm_unreachable("OpenCL-specific cast in Objective-C?"); case CK_HLSLVectorTruncation: + case CK_HLSLElementwiseCast: llvm_unreachable("HLSL-specific cast in Objective-C?"); break; |