From 52d783962f390778b6e8a268bb330965fe438529 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 17 May 2018 20:25:35 +0000 Subject: [PATCH] Fix typo in error message. llvm-svn: 332658 --- lld/ELF/InputFiles.cpp | 2 +- lld/test/ELF/lto/thinlto-object-suffix-replace.ll | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 37fcdec8ab2f..7b8d1f5cbedd 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -1247,7 +1247,7 @@ std::string elf::replaceThinLTOSuffix(StringRef Path) { if (!Path.endswith(Suffix)) { error("-thinlto-object-suffix-replace=" + Suffix + ";" + Repl + - " was given, but " + Path + " does not ends with the suffix"); + " was given, but " + Path + " does not end with the suffix"); return ""; } return (Path.drop_back(Suffix.size()) + Repl).str(); diff --git a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll index a430dfe88880..8c6dd90cd3f6 100644 --- a/lld/test/ELF/lto/thinlto-object-suffix-replace.ll +++ b/lld/test/ELF/lto/thinlto-object-suffix-replace.ll @@ -34,7 +34,7 @@ ; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \ ; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc \ ; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR2 -; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not ends with the suffix +; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not end with the suffix target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu"