Skip to content

Commit 696eb3a

Browse files
committed
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.
1 parent c02b2ab commit 696eb3a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/MC/TargetRegistry.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ const Target *TargetRegistry::lookupTarget(StringRef ArchName,
4949
std::string TempError;
5050
TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
5151
if (!TheTarget) {
52-
Error = "unable to get target for '"
53-
+ TheTriple.getTriple()
54-
+ "', see --version and --triple.\n";
52+
Error = "unable to get target for '" + TheTriple.getTriple() +
53+
"', see --version and --triple.";
5554
return nullptr;
5655
}
5756
}

0 commit comments

Comments
 (0)