From: Ian Romanick Date: Mon, 29 Mar 2010 19:52:00 +0000 (-0700) Subject: Trivial code cleanup in ir_dereference::is_lvalue X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=521c2983b43570ece73d9377f812baa6bcaf94d3;p=mesa.git Trivial code cleanup in ir_dereference::is_lvalue --- diff --git a/ir.h b/ir.h index 3ef37083697..328cd4e4ff5 100644 --- a/ir.h +++ b/ir.h @@ -458,15 +458,12 @@ public: bool is_lvalue() { - ir_variable *as_var; - if (var == NULL) - return NULL; - - as_var = var->as_variable(); + return false; + ir_variable *const as_var = var->as_variable(); if (as_var == NULL) - return NULL; + return false; return !as_var->read_only; }