nridge added a comment.

In D90397#2366769 <https://reviews.llvm.org/D90397#2366769>, @sammccall wrote:

> In D90397#2366727 <https://reviews.llvm.org/D90397#2366727>, @nridge wrote:
>
>> Would it have been possible to disallow default-constructing `SymbolID` 
>> altogether, and preserve the ability to represent "an always-valid symbol 
>> id" (`SymbolID`) vs. "a maybe-valid symbol id" (`Optional<SymbolID>`) as 
>> distinct types in the type system?
>
> Absolutely, except where it matters`sizeof(SymbolID)==8` and 
> `sizeof(Optional<SymbolID>)==16`.
> I think the trigger here was `SymbolID Ref::Container` - we can't afford to 
> use `Optional` there.

Good point!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90397

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to