From 08fe68bb64ae76c619bce587ac701ccd726ce6dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Fri, 14 Nov 2008 18:22:29 +0000 Subject: Report use of possibly uninitialized variables, fixes bug 508477 and bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-11-14 Jürg Billeter * vala/Makefile.am: * vala/valaassignment.vala: * vala/valabasicblock.vala: * vala/valabinaryexpression.vala: * vala/valacastexpression.vala: * vala/valacatchclause.vala: * vala/valacodenode.vala: * vala/valadeclarationstatement.vala: * vala/valaelementaccess.vala: * vala/valaexpressionstatement.vala: * vala/valaflowanalyzer.vala: * vala/valaforeachstatement.vala: * vala/valainvocationexpression.vala: * vala/valamemberaccess.vala: * vala/valaobjectcreationexpression.vala: * vala/valaparenthesizedexpression.vala: * vala/valaphifunction.vala: * vala/valapointerindirection.vala: * vala/valareferencetransferexpression.vala: * vala/valareturnstatement.vala: * vala/valathrowstatement.vala: * vala/valaunaryexpression.vala: * compiler/valacompiler.vala: Report use of possibly uninitialized variables, fixes bug 508477 and bug 556861 svn path=/trunk/; revision=2018 --- vala/valaphifunction.vala | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 vala/valaphifunction.vala (limited to 'vala/valaphifunction.vala') diff --git a/vala/valaphifunction.vala b/vala/valaphifunction.vala new file mode 100644 index 000000000..b95cc9fe6 --- /dev/null +++ b/vala/valaphifunction.vala @@ -0,0 +1,37 @@ +/* valaphifunction.vala + * + * Copyright (C) 2008 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter + */ + +using Gee; + +public class Vala.PhiFunction { + public LocalVariable original_variable { get; private set; } + + public Gee.List operands { get; private set; } + + public PhiFunction (LocalVariable variable, int num_of_ops) { + this.original_variable = variable; + this.operands = new ArrayList (); + for (int i = 0; i < num_of_ops; i++) { + this.operands.add ((LocalVariable) null); + } + } +} -- cgit v1.2.1