[llvm] 8b64adb - Fix incorrect "REQUIRE" (default_target->default_triple) introduced in 59f45a1cdb3

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 11:23:07 PDT 2020


Author: Mehdi Amini
Date: 2020-06-23T18:22:39Z
New Revision: 8b64adb0a2853f42c09bd98759eec86f51b546ba

URL: https://github.com/llvm/llvm-project/commit/8b64adb0a2853f42c09bd98759eec86f51b546ba
DIFF: https://github.com/llvm/llvm-project/commit/8b64adb0a2853f42c09bd98759eec86f51b546ba.diff

LOG: Fix incorrect "REQUIRE" (default_target->default_triple) introduced in 59f45a1cdb3

Adding `default_target` fixed the build by excluding these tests... but
this excluded these tests from ever running!
The correct feature check is `default_triple`

Added: 
    

Modified: 
    llvm/test/Examples/Kaleidoscope/Chapter4.test
    llvm/test/Examples/Kaleidoscope/Chapter5.test
    llvm/test/Examples/Kaleidoscope/Chapter6.test
    llvm/test/Examples/Kaleidoscope/Chapter7.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/Examples/Kaleidoscope/Chapter4.test b/llvm/test/Examples/Kaleidoscope/Chapter4.test
index 7cc65216a0e7..cf8f74307327 100644
--- a/llvm/test/Examples/Kaleidoscope/Chapter4.test
+++ b/llvm/test/Examples/Kaleidoscope/Chapter4.test
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch4 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test basic definition, binding, and execution.
 def foo(x) x + 1;

diff  --git a/llvm/test/Examples/Kaleidoscope/Chapter5.test b/llvm/test/Examples/Kaleidoscope/Chapter5.test
index b22633874fd0..f9509197f066 100644
--- a/llvm/test/Examples/Kaleidoscope/Chapter5.test
+++ b/llvm/test/Examples/Kaleidoscope/Chapter5.test
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test 'if' expression.
 def foo(x) if x < 10 then 0 else 1;

diff  --git a/llvm/test/Examples/Kaleidoscope/Chapter6.test b/llvm/test/Examples/Kaleidoscope/Chapter6.test
index 57d8eae9f29c..1126e0df1f01 100644
--- a/llvm/test/Examples/Kaleidoscope/Chapter6.test
+++ b/llvm/test/Examples/Kaleidoscope/Chapter6.test
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Test unary operator definition.
 def unary-(x) 0 - x;

diff  --git a/llvm/test/Examples/Kaleidoscope/Chapter7.test b/llvm/test/Examples/Kaleidoscope/Chapter7.test
index 75d20ae756af..4c77ebc42169 100644
--- a/llvm/test/Examples/Kaleidoscope/Chapter7.test
+++ b/llvm/test/Examples/Kaleidoscope/Chapter7.test
@@ -1,5 +1,5 @@
 # RUN: Kaleidoscope-Ch7 < %s 2>&1 | FileCheck %s
-# REQUIRES: default_target
+# REQUIRES: default_triple
 
 # Sequence operator and iterative fibonacci function to test user defined vars.
 def binary : 1 (x y) y;


        


More information about the llvm-commits mailing list