diff options
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Sema/Sema.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 44e589179e4..7c498440c6e 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -157,7 +157,7 @@ void Sema::ActOnEndOfTranslationUnit() { // Helper functions. //===----------------------------------------------------------------------===// -DiagnosticInfo Sema::Diag(SourceLocation Loc, unsigned DiagID) { +DiagnosticBuilder Sema::Diag(SourceLocation Loc, unsigned DiagID) { return PP.getDiagnostics().Report(FullSourceLoc(Loc, PP.getSourceManager()), DiagID); } diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index d569994d167..6d9e5820666 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -226,7 +226,7 @@ public: const LangOptions &getLangOptions() const; /// The primitive diagnostic helpers. - DiagnosticInfo Diag(SourceLocation Loc, unsigned DiagID); + DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID); virtual void DeleteExpr(ExprTy *E); virtual void DeleteStmt(StmtTy *S); |