[clang] [clang][NFC] Clean up InitializedEntity booleans. (PR #185335)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 11 17:49:33 PDT 2026
================
@@ -136,6 +136,19 @@ class alignas(8) InitializedEntity {
// that diagnostic text needs to be updated as well.
};
+ enum class NRVOKind { Forbidden, Allowed };
----------------
ojhunt wrote:
maybe explicitly declare the storage as `uint8_t` or even `bool` (something that would be ideal for an opaque bool type, or efficient vector....) just to ensure similar packing
https://github.com/llvm/llvm-project/pull/185335
More information about the cfe-commits
mailing list