diff options
Diffstat (limited to 'llvm/lib/Remarks/YAMLRemarkParser.h')
-rw-r--r-- | llvm/lib/Remarks/YAMLRemarkParser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Remarks/YAMLRemarkParser.h b/llvm/lib/Remarks/YAMLRemarkParser.h index 82a86fa780a..da0e9de0f4d 100644 --- a/llvm/lib/Remarks/YAMLRemarkParser.h +++ b/llvm/lib/Remarks/YAMLRemarkParser.h @@ -48,7 +48,7 @@ private: /// Regular YAML to Remark parser. struct YAMLRemarkParser : public Parser { /// The string table used for parsing strings. - Optional<const ParsedStringTable *> StrTab; + Optional<ParsedStringTable> StrTab; /// Last error message that can come from the YAML parser diagnostics. /// We need this for catching errors in the constructor. std::string LastErrorMessage; @@ -68,7 +68,7 @@ struct YAMLRemarkParser : public Parser { } protected: - YAMLRemarkParser(StringRef Buf, Optional<const ParsedStringTable *> StrTab); + YAMLRemarkParser(StringRef Buf, Optional<ParsedStringTable> StrTab); /// Create a YAMLParseError error from an existing error generated by the YAML /// parser. /// If there is no error, this returns Success. @@ -93,8 +93,8 @@ protected: /// YAML with a string table to Remark parser. struct YAMLStrTabRemarkParser : public YAMLRemarkParser { - YAMLStrTabRemarkParser(StringRef Buf, const ParsedStringTable &StrTab) - : YAMLRemarkParser(Buf, &StrTab) {} + YAMLStrTabRemarkParser(StringRef Buf, ParsedStringTable StrTab) + : YAMLRemarkParser(Buf, std::move(StrTab)) {} static bool classof(const Parser *P) { return P->ParserFormat == Format::YAMLStrTab; |