[llvm] 039f3d0 - [examples] Fix test: Kaleidoscope Chapter 4 no longer supports redefinition.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 00:36:10 PDT 2020


Author: Lang Hames
Date: 2020-10-19T00:35:56-07:00
New Revision: 039f3d01cbff8e162b38671f2e8ff802b74298c8

URL: https://github.com/llvm/llvm-project/commit/039f3d01cbff8e162b38671f2e8ff802b74298c8
DIFF: https://github.com/llvm/llvm-project/commit/039f3d01cbff8e162b38671f2e8ff802b74298c8.diff

LOG: [examples] Fix test: Kaleidoscope Chapter 4 no longer supports redefinition.

This may be fixed in the future, but since redefinition in OrcV2 requires more
manual work on the JIT client's part it was left out of the most recent update
to the tutorials.

Added: 
    

Modified: 
    llvm/test/Examples/Kaleidoscope/Chapter4.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/Examples/Kaleidoscope/Chapter4.test b/llvm/test/Examples/Kaleidoscope/Chapter4.test
index cf8f74307327..3d1ab54543f5 100644
--- a/llvm/test/Examples/Kaleidoscope/Chapter4.test
+++ b/llvm/test/Examples/Kaleidoscope/Chapter4.test
@@ -7,12 +7,3 @@ def bar(x) foo(2 * x);
 bar(2);
 # CHECK: Evaluated to 5.000000
 
-# Test redefinition.
-def foo(x) x + 2;
-foo(2);
-# CHECK: Evaluated to 4.000000
-
-# Verify that 'bar' still calls the original 'foo'.
-bar(2);
-# CHECK: Evaluated to 5.000000
-


        


More information about the llvm-commits mailing list