summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index 0d5cb2ba..3dc98112 100644
--- a/function.cpp
+++ b/function.cpp
@@ -48,6 +48,14 @@ Variable::Variable(const BNVariable& var)
}
+Variable::Variable(const Variable& var)
+{
+ type = var.type;
+ index = var.index;
+ storage = var.storage;
+}
+
+
Variable& Variable::operator=(const Variable& var)
{
type = var.type;