================ @@ -22,13 +22,13 @@ using namespace llvm; int main(int argc, char **argv) { #if defined(__i386__) || defined(_M_IX86) || \ defined(__x86_64__) || defined(_M_X64) - if (std::optional<StringMap<bool>> features = + if (const std::optional<StringMap<bool>> features = sys::getHostCPUFeatures(features)) { - if ((*features)["sse"]) + if (features->contains("sse")) ---------------- DavidSpickett wrote:
Fixed. https://github.com/llvm/llvm-project/pull/97824 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits