Skip to content

Commit

Permalink
clang: allow addressof of non-client pointers in client namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri91 committed Jan 10, 2025
1 parent 904c016 commit 6a5cc2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clang/lib/Sema/SemaCheerp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,13 @@ bool cheerp::canAddressOfClientBeTaken(const clang::VarDecl* VD, const clang::Se
case TypeKind::UnsignedInt32Bit:
case TypeKind::SignedInt32Bit:
case TypeKind::FloatingPoint:
case TypeKind::Pointer:
{
return false;
}
case TypeKind::Pointer:
{
return Ty->getPointeeType().getAddressSpace() != LangAS::cheerp_client;
}
case TypeKind::Reference:
{
break;
Expand Down

0 comments on commit 6a5cc2f

Please sign in to comment.