Index: include/llvm/ADT/StringRef.h =================================================================== --- include/llvm/ADT/StringRef.h +++ include/llvm/ADT/StringRef.h @@ -854,6 +854,8 @@ public: template constexpr StringLiteral(const char (&Str)[N]) : StringRef(Str, N - 1) {} + + const char *c_str() const { return data(); } }; /// @name StringRef Comparison Operators