From f77b7353761ba3ad0b27b1d98e6033de1acaddf5 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 4 Aug 2010 01:14:33 +0000 Subject: [PATCH] Don't construct a std::string with a literal "". llvm-svn: 110180 --- llvm/include/llvm/Support/SourceMgr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Support/SourceMgr.h b/llvm/include/llvm/Support/SourceMgr.h index 9cd35d1f9311..270ab2b2f85c 100644 --- a/llvm/include/llvm/Support/SourceMgr.h +++ b/llvm/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,