numeric literals are now copied during cloning
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 23 Dec 2020 18:30:03 +0000 (12:30 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 23 Dec 2020 18:30:03 +0000 (12:30 -0600)
onyx
src/onyxclone.c

diff --git a/onyx b/onyx
index 2b80fa462d6484562d2b5a5e8756dccf51848cf5..a7f14b603b89bee19da1d0169673447dcc0ef583 100755 (executable)
Binary files a/onyx and b/onyx differ
index 355af0e26f8979e8c44111db8a5cb5cb8769b9bd..31cd7e75e7a12bb1fa67a06adc8027ea6d538790 100644 (file)
@@ -9,7 +9,6 @@ static inline b32 should_clone(AstNode* node) {
                // List of nodes that should not be copied
                case Ast_Kind_Global:
                case Ast_Kind_Memres:
-               case Ast_Kind_NumLit:
                case Ast_Kind_StrLit:
                case Ast_Kind_Package:
                case Ast_Kind_Enum_Type: