Skip to content

Commit

Permalink
Remove unnecessary newline from error message
Browse files Browse the repository at this point in the history
I was writing a test that included this error and noticed the spurios
newline that made writing the test more awkward.
  • Loading branch information
arichardson committed Oct 26, 2023
1 parent c02b2ab commit 696eb3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/MC/TargetRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 696eb3a

Please sign in to comment.