forked from OSchip/llvm-project
				
			Don't construct a std::string with a literal "".
llvm-svn: 110180
This commit is contained in:
		
							parent
							
								
									47053d972b
								
							
						
					
					
						commit
						f77b735376
					
				| 
						 | 
					@ -161,8 +161,8 @@ public:
 | 
				
			||||||
  // Diagnostic with no location (e.g. file not found, command line arg error).
 | 
					  // Diagnostic with no location (e.g. file not found, command line arg error).
 | 
				
			||||||
  SMDiagnostic(const std::string &filename, const std::string &Msg,
 | 
					  SMDiagnostic(const std::string &filename, const std::string &Msg,
 | 
				
			||||||
               bool showline = true)
 | 
					               bool showline = true)
 | 
				
			||||||
    : SM(0), Loc(), Filename(filename), LineNo(-1), ColumnNo(-1),
 | 
					    : SM(0), Filename(filename), LineNo(-1), ColumnNo(-1),
 | 
				
			||||||
      Message(Msg), LineContents(""), ShowLine(showline) {}
 | 
					      Message(Msg), ShowLine(showline) {}
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  // Diagnostic with a location.
 | 
					  // Diagnostic with a location.
 | 
				
			||||||
  SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN,
 | 
					  SMDiagnostic(const SourceMgr &sm, SMLoc L, const std::string &FN,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue