mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Remove unnecessary newline from error message
I was writing a test that included this error and noticed the spurios newline that made writing the test more awkward.
This commit is contained in:
@@ -49,9 +49,8 @@ const Target *TargetRegistry::lookupTarget(StringRef ArchName,
|
||||
std::string TempError;
|
||||
TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
|
||||
if (!TheTarget) {
|
||||
Error = "unable to get target for '"
|
||||
+ TheTriple.getTriple()
|
||||
+ "', see --version and --triple.\n";
|
||||
Error = "unable to get target for '" + TheTriple.getTriple() +
|
||||
"', see --version and --triple.";
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user