summaryrefslogtreecommitdiffstats
path: root/ir.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-03-11 14:23:41 -0800
committerIan Romanick <[email protected]>2010-03-11 14:23:41 -0800
commitd27ec2461bca2625d09a3592ec8cc4137d4347f3 (patch)
tree978f3b9edc37cd9814cff241fabf1a0bd77c9a32 /ir.h
parent1f585180597290c7891c43dc0da3c9c06d7cebb1 (diff)
Fix broken constructor of ir_instruction base class
Make the constructor inline-able, and don't try to initialize it as a simple_node. It hasn't been derived from simple_node in a long time.
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ir.h b/ir.h
index a4cc1d8b94f..7de7c385323 100644
--- a/ir.h
+++ b/ir.h
@@ -53,7 +53,11 @@ public:
virtual void accept(ir_visitor *) = 0;
protected:
- ir_instruction(int mode);
+ ir_instruction(int mode)
+ : mode(mode)
+ {
+ /* empty */
+ }
private:
/**