[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:29:59 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)
----------------
efriedma-quic wrote:

Why are we accepting arbitrary-width integers here?

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


More information about the cfe-commits mailing list