[llvm-commits] [llvm] r110180 - /llvm/trunk/include/llvm/Support/SourceMgr.h
Dan Gohman
gohman at apple.com
Tue Aug 3 18:14:33 PDT 2010
Author: djg
Date: Tue Aug 3 20:14:33 2010
New Revision: 110180
URL: http://llvm.org/viewvc/llvm-project?rev=110180&view=rev
Log:
Don't construct a std::string with a literal "".
Modified:
llvm/trunk/include/llvm/Support/SourceMgr.h
Modified: llvm/trunk/include/llvm/Support/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SourceMgr.h?rev=110180&r1=110179&r2=110180&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SourceMgr.h (original)
+++ llvm/trunk/include/llvm/Support/SourceMgr.h Tue Aug 3 20:14:33 2010
@@ -161,8 +161,8 @@
// 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,
More information about the llvm-commits
mailing list