diff --git a/include/llvm/ProfileData/SampleProfReader.h b/include/llvm/ProfileData/SampleProfReader.h index a6848ff38b7..e52ecf8e212 100644 --- a/include/llvm/ProfileData/SampleProfReader.h +++ b/include/llvm/ProfileData/SampleProfReader.h @@ -86,9 +86,8 @@ public: /// \brief Report a parse error message. void reportParseError(int64_t LineNumber, Twine Msg) const { - DiagnosticInfoSampleProfile Diag(Buffer->getBufferIdentifier(), LineNumber, - Msg); - Ctx.diagnose(Diag); + Ctx.diagnose(DiagnosticInfoSampleProfile(Buffer->getBufferIdentifier(), + LineNumber, Msg)); } /// \brief Create a sample profile reader appropriate to the file format. diff --git a/include/llvm/ProfileData/SampleProfWriter.h b/include/llvm/ProfileData/SampleProfWriter.h index d190208e75d..62de704c3af 100644 --- a/include/llvm/ProfileData/SampleProfWriter.h +++ b/include/llvm/ProfileData/SampleProfWriter.h @@ -77,6 +77,6 @@ public: } // End namespace sampleprof -} // End namespace sampleprof +} // End namespace llvm #endif // LLVM_PROFILEDATA_SAMPLEPROFWRITER_H