From 84336cf29d2b0f8ed9c8c175091619361a48dffd Mon Sep 17 00:00:00 2001 From: Mat M Date: Mon, 5 Sep 2016 06:53:56 -0400 Subject: [PATCH] value: Change Value into a class (#19) 'struct' is a little bit of a misnomer, considering it has invariants --- src/frontend/ir/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/ir/value.h b/src/frontend/ir/value.h index 13b6efa9..cc839b07 100644 --- a/src/frontend/ir/value.h +++ b/src/frontend/ir/value.h @@ -18,7 +18,7 @@ class Inst; * A representation of a value in the IR. * A value may either be an immediate or the result of a microinstruction. */ -struct Value final { +class Value final { public: Value() : type(Type::Void) {} explicit Value(Inst* value);