Skip to content

Commit

Permalink
Adds the realloc builtin to the list of allowed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvan-mee authored and yuri91 committed Aug 7, 2024
1 parent 5c1636c commit 4ed1d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/Sema/SemaExpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<GenericJSAttr>() && FDecl->hasAttr<AsmJSAttr>()) {
auto p = FDecl->parameters().begin();
Expand Down

0 comments on commit 4ed1d4d

Please sign in to comment.