jamesfarrell added inline comments.
================ Comment at: llvm/lib/MC/MCStreamer.cpp:1343 LinkedTargetVersion.getMajor(), - *LinkedTargetVersion.getMinor(), - *LinkedTargetVersion.getSubminor(), SDKVersion); + LinkedTargetVersion.getMinor().getValueOr(0), + LinkedTargetVersion.getSubminor().getValueOr(0), ---------------- This was broken in the original change, because we were blindly dereferencing an Optional without checking whether it had a value. ================ Comment at: llvm/unittests/Support/Host.cpp:411 #if defined(__APPLE__) TEST_F(HostTest, getMacOSHostVersion) { ---------------- This was broken in the original change. Because it's wrapped in "#if defined(__APPLE__)", I'm not sure how to test it prior to commit. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D114885/new/ https://reviews.llvm.org/D114885 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits