[clang] [Clang][MVE] Use IRBuilder methods to emit masked load/store (NFC) (PR #163790)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 16 09:10:46 PDT 2025
================
@@ -1684,7 +1684,8 @@ void EmitterBase::EmitBuiltinCG(raw_ostream &OS) {
OS << " case ARM::BI__builtin_arm_" << OI.Int->builtinExtension()
<< "_" << OI.Name << ":\n";
for (size_t i = 0, e = MG.ParamTypes.size(); i < e; ++i)
- OS << " Param" << utostr(i) << " = " << OI.ParamValues[i] << ";\n";
+ OS << " Param" << utostr(i) << " = static_cast<"
+ << MG.ParamTypes[i] << ">(" << OI.ParamValues[i] << ");\n";
----------------
nikic wrote:
The `Align` constructor is explicit, so it's not possible to directly assign an integer to an `Align` variable.
https://github.com/llvm/llvm-project/pull/163790
More information about the cfe-commits
mailing list