================ @@ -744,7 +744,7 @@ void codegen::setFunctionAttributes(StringRef CPU, StringRef Features, Expected<std::unique_ptr<TargetMachine>> codegen::createTargetMachineForTriple(StringRef TargetTriple, CodeGenOptLevel OptLevel) { - Triple TheTriple(TargetTriple); + Triple TheTriple(TargetTriple.str()); ---------------- bharadwajy wrote:
> This looks redundant - doesn't Triple's constructor do the conversion to > `std::string` from Twine internally? Thanks for flagging my incomplete restoration. Fixed. https://github.com/llvm/llvm-project/pull/90809 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits