diff options
author | Ian Romanick <[email protected]> | 2010-03-11 14:23:41 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-03-11 14:23:41 -0800 |
commit | d27ec2461bca2625d09a3592ec8cc4137d4347f3 (patch) | |
tree | 978f3b9edc37cd9814cff241fabf1a0bd77c9a32 /ir.h | |
parent | 1f585180597290c7891c43dc0da3c9c06d7cebb1 (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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -53,7 +53,11 @@ public: virtual void accept(ir_visitor *) = 0; protected: - ir_instruction(int mode); + ir_instruction(int mode) + : mode(mode) + { + /* empty */ + } private: /** |