diff options
Diffstat (limited to 'lib/Parse/DeclSpec.cpp')
-rw-r--r-- | lib/Parse/DeclSpec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Parse/DeclSpec.cpp b/lib/Parse/DeclSpec.cpp index 733c37cb4f..c497108471 100644 --- a/lib/Parse/DeclSpec.cpp +++ b/lib/Parse/DeclSpec.cpp @@ -311,7 +311,6 @@ void DeclSpec::Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr, } void DeclSpec::Diag(Diagnostic &D, SourceLocation Loc, SourceManager& SrcMgr, - unsigned DiagID, const std::string &Info) { - const std::string *Strs[] = { &Info }; - D.Report(FullSourceLoc(Loc,SrcMgr), DiagID, Strs, 1); + unsigned DiagID, const std::string &Info) { + D.Report(FullSourceLoc(Loc,SrcMgr), DiagID) << Info; } |