In [DebugInfo] llvm::Optional => std::optional (Git Hash:89fab98e884f05076bbd420d95b5de3596f5452c), he have converted all of defines of functions from llvm::Optional to std::optional, including function llvm::TargetMachine *llvm::Target::createTargetMachine
But in the llvm\examples\Kaleidoscope\Chapter8\toy.cpp, the type of RM is llvm::Optional<Reloc::Model>, when this variable is passed in as a parameter to the llvm::TargetMachine *llvm::Target::createTargetMachine, an error will be raised.
error C2664: “llvm::TargetMachine *llvm::Target::createTargetMachine(llvm::StringRef,llvm::StringRef,llvm::StringRef,const llvm::TargetOptions &,std::optional<llvm::Reloc::Model>,std::optional<llvm::CodeModel::Model>,llvm::CodeGenOpt::Level,bool) const”: Unable to convert parameter 5 from "llvm::Optional<llvm::Reloc::Model>" to "std::optional<llvm::Reloc::Model>"
My patch modified the type of RM from llvm::Optional<llvm::Reloc::Model> to std::optional<Reloc::Model>
Additionally, my build environment is VisualStudio2019, I didn't know why his revision passed the CI.