From 4ed1d4dadfb928ca55412a34086417fad99a6284 Mon Sep 17 00:00:00 2001 From: Ruben van Meerten Date: Wed, 7 Aug 2024 13:37:05 +0200 Subject: [PATCH] Adds the realloc builtin to the list of allowed functions --- clang/lib/Sema/SemaExpr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 3c9981ca70d6..d86b4684bbdc 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -21132,7 +21132,8 @@ void Sema::CheckCheerpFFICall(const FunctionDecl* Parent, const FunctionDecl* FD // Allow some builtins in any case, since they will become intrinsics if (FDecl->getBuiltinID() == Builtin::BImemcpy || FDecl->getBuiltinID() == Builtin::BImemmove || - FDecl->getBuiltinID() == Builtin::BImemset) + FDecl->getBuiltinID() == Builtin::BImemset || + FDecl->getBuiltinID() == Builtin::BIrealloc) return; if (Parent->hasAttr() && FDecl->hasAttr()) { auto p = FDecl->parameters().begin();