[clang] [AArch64] Fix possible miscompilation with `__builtin_arm_gmi` (PR #196481)
Igor Kudrin via cfe-commits
cfe-commits at lists.llvm.org
Fri May 8 21:56:01 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)
----------------
igorkudrin wrote:
It seems like all these built-ins need some polishing. For example, the following code causes Clang to crash:
```
void *test(void *p, __int128 m) {
return __builtin_arm_irg(p, m);
}
```
https://github.com/llvm/llvm-project/pull/196481
More information about the cfe-commits
mailing list