Skip to content

Commit 75a9b1c

Browse files
committed
Revert "Remove unnecessary newline from error message"
This reverts commit 696eb3a.
1 parent 9571d20 commit 75a9b1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/MC/TargetRegistry.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ const Target *TargetRegistry::lookupTarget(StringRef ArchName,
142142
std::string TempError;
143143
TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
144144
if (!TheTarget) {
145-
Error = "unable to get target for '" + TheTriple.getTriple() +
146-
"', see --version and --triple.";
145+
Error = "unable to get target for '"
146+
+ TheTriple.getTriple()
147+
+ "', see --version and --triple.\n";
147148
return nullptr;
148149
}
149150
}

0 commit comments

Comments
 (0)