diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-26 00:26:57 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-26 00:26:57 +0800 |
| commit | e83990754f49ec6eba7b9e1a5ff80a6add5de3a1 (patch) | |
| tree | 6308b4d0afa5bde2de82e7aa034058302cb1d193 /node/ExprNode.cc | |
| parent | 958a811b18aee04e4795cf003fd8e3db00312c91 (diff) | |
bugfix & test
Diffstat (limited to 'node/ExprNode.cc')
| -rw-r--r-- | node/ExprNode.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/node/ExprNode.cc b/node/ExprNode.cc index e7ef2aa..6127f6f 100644 --- a/node/ExprNode.cc +++ b/node/ExprNode.cc @@ -51,6 +51,7 @@ Value UnaryExprNode::CodeGen() { if (result == nullptr) { Log(LogLevel::PCC_ERROR, "failed to generate a unary operation"); } + type_ = value_->GetType(); return result; } |
