[PATCH] D157227: [Clang] Don't add `undef` for `operator new` under -fno-exceptions.

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 7 11:58:55 PDT 2023


ldionne added a comment.

In D157227#4564817 <https://reviews.llvm.org/D157227#4564817>, @nikic wrote:

> Removing noundef makes no sense to me, because the return value is noundef even under fno-exceptions. If we remove something, it should be the nonnull attribute, because that's what's actually being violated.
>
> @ldionne Can you give us an ETA on D150610 <https://reviews.llvm.org/D150610> please? Do we need to introduce a workaround for this libcxx bug in clang, or do you plan to fix this in the near future?

I'll try to do this for LLVM 18, sorry that's just a complicated change. I would recommend not working around this in Clang.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157227/new/

https://reviews.llvm.org/D157227



More information about the cfe-commits mailing list