[clang] [Clang][AArch64] Fix possible miscompilation with `__builtin_arm_gmi` (PR #196481)

Igor Kudrin via cfe-commits cfe-commits at lists.llvm.org
Wed May 13 22:46:39 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);
----------------
igorkudrin wrote:

I've updated the prototypes, so now setting the return type explicitly is not required.

https://github.com/llvm/llvm-project/pull/196481


More information about the cfe-commits mailing list