[clang] [clang] Fix ignoring converted first arg of elementwise_fma (PR #154941)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 22 06:12:21 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
Checking CI.
Fixes #<!-- -->154900
---
Full diff: https://github.com/llvm/llvm-project/pull/154941.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaChecking.cpp (+1)
``````````diff
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp
index 1d3cd58c77dc5..6e777fb9aec8e 100644
--- a/clang/lib/Sema/SemaChecking.cpp
+++ b/clang/lib/Sema/SemaChecking.cpp
@@ -15955,6 +15955,7 @@ bool Sema::BuiltinElementwiseTernaryMath(
return true;
}
+ TheCall->setArg(0, Args[0]);
for (int I = 1; I < 3; ++I) {
if (Args[0]->getType().getCanonicalType() !=
Args[I]->getType().getCanonicalType()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/154941
More information about the cfe-commits
mailing list