[llvm] 0cb9816 - [ELF][Obvious] Last time fixing this test hopefully

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 10:09:27 PST 2024


Author: Joseph Huber
Date: 2024-01-05T12:09:20-06:00
New Revision: 0cb98167ecee4b8e91fb07cb186daae616045454

URL: https://github.com/llvm/llvm-project/commit/0cb98167ecee4b8e91fb07cb186daae616045454
DIFF: https://github.com/llvm/llvm-project/commit/0cb98167ecee4b8e91fb07cb186daae616045454.diff

LOG: [ELF][Obvious] Last time fixing this test hopefully

Added: 
    

Modified: 
    llvm/unittests/Object/ELFObjectFileTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Object/ELFObjectFileTest.cpp b/llvm/unittests/Object/ELFObjectFileTest.cpp
index 71c08f51f8637f..48bebc54ccc2b3 100644
--- a/llvm/unittests/Object/ELFObjectFileTest.cpp
+++ b/llvm/unittests/Object/ELFObjectFileTest.cpp
@@ -313,7 +313,7 @@ TEST(ELFObjectFileTest, CheckOSAndTriple) {
     llvm::Triple TheTriple = ELFObj.makeTriple();
 
     // The AMDGPU architecture will be unknown on big-endian testers.
-    if (TheTriple.getOS() == Triple::UnknownOS)
+    if (TheTriple.getArch() == Triple::UnknownArch)
       continue;
 
     EXPECT_EQ(Triple, TheTriple.getTriple());


        


More information about the llvm-commits mailing list