[llvm] 1e328b0 - [LTO] Specify triple to address unknown binary format assertion

Jake Egan via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 13:40:20 PST 2021


Author: Jake Egan
Date: 2021-12-02T16:40:11-05:00
New Revision: 1e328b06c15273edf4a40a27ca24931b5efb3a87

URL: https://github.com/llvm/llvm-project/commit/1e328b06c15273edf4a40a27ca24931b5efb3a87
DIFF: https://github.com/llvm/llvm-project/commit/1e328b06c15273edf4a40a27ca24931b5efb3a87.diff

LOG: [LTO] Specify triple to address unknown binary format assertion

On AIX, this test generates an XCOFF file and hits "unknown binary format" assertion in llvm-nm. This patch specifies the triple to mitigate this issue.

Reviewed By: steven_wu

Differential Revision: https://reviews.llvm.org/D114683

Added: 
    

Modified: 
    llvm/test/LTO/X86/bcsection.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/LTO/X86/bcsection.ll b/llvm/test/LTO/X86/bcsection.ll
index d403c2c5928ce..32216ee6f4de7 100644
--- a/llvm/test/LTO/X86/bcsection.ll
+++ b/llvm/test/LTO/X86/bcsection.ll
@@ -18,6 +18,8 @@
 
 ; REQUIRES: default_triple
 
+target triple = "x86_64-unknown-linux-gnu"
+
 ; CHECK: main
 define i32 @main() {
   ret i32 0


        


More information about the llvm-commits mailing list