diff --git a/lib/Interpreter/ForwardDeclPrinter.cpp b/lib/Interpreter/ForwardDeclPrinter.cpp index 1752ef2844..5b2e61303d 100644 --- a/lib/Interpreter/ForwardDeclPrinter.cpp +++ b/lib/Interpreter/ForwardDeclPrinter.cpp @@ -192,7 +192,7 @@ namespace cling { // FIXME: Once the C++ modules replaced the forward decls, remove this. if (D->getASTContext().getLangOpts().Modules && llvm::StringRef(includeText).starts_with("include ")) { - includeText += strlen("include "); + includeText += std::char_traits::length("include "); } assert((includeText[0] == '<' || includeText[0] == '"') &&