From: Connor Abbott Date: Wed, 17 Dec 2014 03:32:21 +0000 (-0500) Subject: glsl: fix stale comment X-Git-Tag: upstream/17.1.0~21206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8761c8559a006ab30c23963a3641fe05e9e070a;p=platform%2Fupstream%2Fmesa.git glsl: fix stale comment Reviewed-by: Kenneth Graunke Signed-off-by: Connor Abbott --- diff --git a/src/glsl/ir_function_can_inline.cpp b/src/glsl/ir_function_can_inline.cpp index 7b15d5d..3b1d15f 100644 --- a/src/glsl/ir_function_can_inline.cpp +++ b/src/glsl/ir_function_can_inline.cpp @@ -26,11 +26,10 @@ * * Determines if we can inline a function call using ir_function_inlining.cpp. * - * The primary restriction is that we can't return from the function - * other than as the last instruction. We could potentially work - * around this for some constructs by flattening control flow and - * moving the return to the end, or by using breaks from a do {} while - * (0) loop surrounding the function body. + * The primary restriction is that we can't return from the function other + * than as the last instruction. In lower_jumps.cpp, we can lower return + * statements not at the end of the function to other control flow in order to + * deal with this restriction. */ #include "ir.h"