diff --git a/reid-llvm-lib/Cargo.toml b/reid-llvm-lib/Cargo.toml index 46a4ab6..2b3abfe 100644 --- a/reid-llvm-lib/Cargo.toml +++ b/reid-llvm-lib/Cargo.toml @@ -7,6 +7,6 @@ edition = "2024" [dependencies] ## LLVM Bindings -llvm-sys = {version ="201.0.1", features=["prefer-dynamic"] } +llvm-sys = {version ="201.0.1" } ## Make it easier to generate errors thiserror = "1.0.44" \ No newline at end of file diff --git a/reid/src/ast/parse.rs b/reid/src/ast/parse.rs index de92825..3484f5c 100644 --- a/reid/src/ast/parse.rs +++ b/reid/src/ast/parse.rs @@ -205,6 +205,13 @@ where ), expr.0 .1, ), + ExpressionKind::CastTo(value_expr, ty) => Expression( + ExpressionKind::CastTo( + Box::new(apply_inner(PrimaryExpression(*value_expr.clone()), fun)), + ty.clone(), + ), + expr.0 .1, + ), _ => fun(expr), } }