aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2022-02-16 05:56:25 -0600
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2022-02-16 05:56:25 -0600
commitd32b875dbc2400baf896f4b6eb12377273d6c3bc (patch)
tree8da7ab99671291e2ffcf1a8eae14f7180c4014f2
parent85fd97e3b9dea439301f545945b516d4c3f4ba58 (diff)
downloadllvm-d32b875dbc2400baf896f4b6eb12377273d6c3bc.zip
llvm-d32b875dbc2400baf896f4b6eb12377273d6c3bc.tar.gz
llvm-d32b875dbc2400baf896f4b6eb12377273d6c3bc.tar.bz2
[ELF][test] Fix build break after 20bdd3e23263
The added run lines build a bitcode file for x86 and an object file for whatever the default target is that is running the test. This causes an incompatibility between the files. Add the triple to the llvm-mc invocation.
-rw-r--r--lld/test/ELF/lto/duplicated.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/test/ELF/lto/duplicated.ll b/lld/test/ELF/lto/duplicated.ll
index 8dae81d..e0e05b1 100644
--- a/lld/test/ELF/lto/duplicated.ll
+++ b/lld/test/ELF/lto/duplicated.ll
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: rm -rf %t && split-file %s %t
; RUN: llvm-as %t/a.ll -o %t/a.bc
-; RUN: llvm-mc -filetype=obj %t/b.s -o %t/b.o
+; RUN: llvm-mc --triple=x86_64-unknown-linux-gnu -filetype=obj %t/b.s -o %t/b.o
; RUN: not ld.lld %t/a.bc %t/a.bc -o /dev/null -shared 2>&1 | FileCheck %s
;; --thinlto-index-only skips some passes. Test the error is present.