summaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/ir.h b/ir.h
index 8fd823db09..86beb2d7ce 100644
--- a/ir.h
+++ b/ir.h
@@ -1055,10 +1055,7 @@ public:
virtual ir_visitor_status accept(ir_hierarchical_visitor *);
- ir_constant *clone()
- {
- return new ir_constant(this->type, &this->value);
- }
+ ir_constant *clone();
/**
* Get a particular component of a constant as a specific type
@@ -1089,6 +1086,12 @@ public:
} value;
exec_list components;
+
+private:
+ /**
+ * Parameterless constructor only used by the clone method
+ */
+ ir_constant(void);
};
void