[clang] [AArch64] Fix possible miscompilation with `__builtin_arm_gmi` (PR #196481)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Fri May 8 10:30:00 PDT 2026
================
@@ -94,7 +94,7 @@ bool SemaARM::BuiltinARMMemoryTaggingCall(unsigned BuiltinID,
if (!SecArgType->isIntegerType())
return Diag(TheCall->getBeginLoc(), diag::err_memtag_arg_must_be_integer)
<< "second" << SecArgType << Arg1->getSourceRange();
- TheCall->setType(Context.IntTy);
+ TheCall->setType(Context.LongLongTy);
----------------
efriedma-quic wrote:
Should this be uint64_t, like the ACLE intrinsic?
https://github.com/llvm/llvm-project/pull/196481
More information about the cfe-commits
mailing list