From 521c2983b43570ece73d9377f812baa6bcaf94d3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 29 Mar 2010 12:52:00 -0700 Subject: [PATCH] Trivial code cleanup in ir_dereference::is_lvalue --- ir.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; } -- 2.30.2