diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-04 01:14:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-04 01:14:33 +0000 |
commit | 26e064ff326ad7daa187143ad1164497f619ca40 (patch) | |
tree | 002fd9e64a99960d617ef0761bf8dd350ca1b006 /include/llvm/Support/SourceMgr.h | |
parent | 582554555376cd60507c77cadb45edb88acfe7ed (diff) |
Don't construct a std::string with a literal "".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 9cd35d1f93..270ab2b2f8 100644 --- a/include/llvm/Support/SourceMgr.h +++ b/include/llvm/Support/SourceMgr.h @@ -161,8 +161,8 @@ public: // Diagnostic with no location (e.g. file not found, command line arg error). SMDiagnostic(const std::string &filename, const std::string &Msg, bool showline = true) - : SM(0), Loc(), Filename(filename), LineNo(-1), ColumnNo(-1), - Message(Msg), LineContents(""), ShowLine(showline) {} + : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), + Message(Msg), ShowLine(showline) {} // Diagnostic with a location. SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN, |