================
@@ -711,10 +819,10 @@ StringRef getArchExtFeature(StringRef ArchExt);
 StringRef resolveCPUAlias(StringRef CPU);
 
 // Information by Name
-std::optional<ArchInfo> getArchForCpu(StringRef CPU);
----------------
tmatheson-arm wrote:

Why the switch back to raw pointers from std::optional? This seems to undo what 
was done in https://reviews.llvm.org/D142539

Does this new implementation rely on there being one global copy of `ArchInfo`? 
A while back I tried to make this work so that `ArchInfo::operator==` made use 
of this address, but that ended up being unworkable so we switched to allowing 
copying of `ArchInfo` objects.

https://github.com/llvm/llvm-project/pull/78270
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to