================ @@ -1541,6 +1541,22 @@ bool CompilerInvocation::createFromArgs( else invoc.loweringOpts.setInitGlobalZero(false); + // -finit-logical + if (const auto *arg = + args.getLastArg(clang::driver::options::OPT_finit_logical_EQ)) { + llvm::StringRef argValue = llvm::StringRef(arg->getValue()); + if (argValue.lower() == "true") ---------------- tarunprabhu wrote:
Consider using `StringRef::compare_insensitive` here. `lower()` creates a new std::string which seems unnecessary. https://github.com/llvm/llvm-project/pull/150939 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits